Description:
-
This is a simple structure of an
Angular 5application. This project is integrated with Webpack for files bundling & live reload. -
Language supported :
- Typescript.
-
Angular CLI:
- 1.7.4
Online demo can be found here:
.
+-- src
| +-- assets
| +-- constants
| +-- environments
| +-- factories
| +-- guards
| +-- interceptors
| +-- interfaces
| +-- models
| +-- modules
| +-- <module a>
| +-- <module a>.component.html
| +-- <module a>.component.ts
| +-- <module b>
| +-- <module b>.component.html
| +-- <module b>.component.ts
| <parent module>.module.ts
| <parent module>.module.ts
+-- index.html (Index file)
assets: Static files (such as:*.css,*.json, ...) should be stored in this folder.constants: Appliation constant files should be stored in this folder (such as:app-settings.constant.ts,urlStates.constant.ts, ...). Naming convention:*.constants.ts.environments: Contains classes or variables that depend on build environment.factories: Contains application factory functions.interceptors: Contains application interceptor.modules: Application main modules should be stored in this folder<module a>: Folder contains module a definition. Such as :account,category, ...<module a>.component.html: Template file formodule a.<module a>.component.ts: Logic definition file ofmodule a.<parent module>.module.ts: Importing/exporting children modules. For example:user-management,category-management.<parent module>.route.ts: Child modules' routes definition.interfaces: Contains application interfaces which is for classes to implement.models: Contains application model files, mostly about database entities.modules: Contains application modules files.services: Contains application services to inject to components.view-models: Contains view-model files that are bridge between api end-point and application.index.html: Application entry html file.
ng serve: Bundle and publish project files. Files which are generated will be placed insidedistfolder.npm build --prod: Bundle and start watching project. This is for development stage. Browser will be reloaded automatically when changes are detected.
ngx-translate: For i18n translation in app. Please refer its document.ngx-moment: Provides time calculation pipeline. Please refer its documentfont-awesome: Fonts system.jquery-slimscroll: Slimscroll for website.ngx-bootstrap: Bootstrap components for angular xadmin-lte: Free admin website template. Source: adminlte.iobootstrap 3: Responsive web design framework.
- While using this plugin, if you find any errors, please create issues at project page