Build for production
1 |
ng build --prod=true |
Build for dev
1 |
ng build --env=cbdev --aot=true --output-hashing all |
Run project using different port
1 |
ng serve --port 4401 |
Create component
1 |
ng generate component name |
Create module
1 |
ng generate module name |
Create routing module
1 |
ng generate module name\name-routing --flat --module=app |
Create service
1 |
ng g service services\name |
Leave a reply