Node.js and NPM : You can download Node.js from https://nodejs.org. NPM comes bundled with
Node.js.
angular-cli : You can install angular-cli by executing
from your terminal npm install -g @angular/cli .
More details can be found here https://github.com/angular/angular-cli.
Installing The NPM Packages
Before proceding you'll need to install npm packages. You can do
this by running npm install from the root of your
project to install all the necessary dependencies.
Development Server
Run ng serve or ng serve -aot for a dev
server. Navigate to http://localhost:4200/ . The app will automatically reload if you change any of the
source files.
Code Scaffoldings
Run ng generate component component-name to generate
a new component. You can also use ng generate directive/pipe/service/class
Building
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.
Preloading Strategy
Provides a preloading strategy that preloads all modules as quickly
as possible.