Run npm start
for a local dev server. This configuration will use the environment.ts
configuration file.
A browser will be automatically opened for the URL http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run npm run start-development
for a remote dev server. This configuration will use the environment.development.ts
configuration file.
A browser will be automatically opened for the URL http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run npm run start-production
for a remote production server. This configuration will use the environment.prod.ts
configuration file.
A browser will be automatically opened for the URL http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run npm run ng -- generate component component-name
to generate a new component. You can also use npm run ng -- generate directive|pipe|service|class|guard|interface|enum|module
.
Run npm run build
to build the project. The build artifacts will be stored in the dist/
directory.
Run npm test
to execute the unit tests via Karma.
Run npm run e2e
to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve
.
In order to run other ng
commands you can run npm run ng -- <parameters>
.
To get more help on the Angular CLI use npm run ng -- help
or go check out the Angular CLI README.