This project was generated with Angular CLI version 6.2.4.
Be in the root directory then run ng generate module ModuleName -m app
Be in your directory of choice (normally a module) and run ng generate component ComponentName -m ModuleName
Be in your directory of choice (normally a module) and run ng generate service ServiceName -m ModuleName
Be in your directory of choice (normally a module) and run ng generate component PageName -m ModuleName
There are extra steps required where you have to rename your component from page-name.component.ts|html|css|spec
to page-name.page.ts|html|css|spec
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.