Before you begin, make sure your development environment includes Node.js®
and an npm
package manager.
Angular requires Node.js
version 8.x or 10.x
- To check your version, run
node -v
in a terminal/console window. - To get
Node.js
, go to nodejs.org.
Install the Angular CLI globally using a terminal/console window.
npm install -g @angular/cli
Angular 8 requires Node.js
version 12.x
Update guide - see: https://update.angular.io
$ npm install
## Usage
``` bash
# serve with hot reload at localhost:4200.
$ ng serve
# build for production with minification
$ ng build
Run ng generate component component-name
to generate a new component. You can also use ng generate directive/pipe/service/class/module
.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.