Install NPM
{npm install}
Start NPM
{npm start}
NPM tsc
{npm run tsc -w}
install bootstrap
{npm install --save bootstrap@3}
install bower
{npm install -g bower}
install bower(bootstrap)
{bower install bootstarp --save}
Helper library auth
{npm install angular2-jwt --save}
auth0-lock
{npm install auth0-lock --save}
create Service
{ng g s logging}
Install Angular-cli
{npm install -g angular-cli}
Uninstall Angular-cli
{npm uninstall -g angular-cli}
Create new project
{ng new project}
Create new Project with prefix
{ng new recipe-book --prefix rb}
Start Cli
{ng serve}
Start Cli with new port
{ng serve --port 4300}
Create new component
{ng generate component home}
{ng g c directory}
Create component without test file
{ng g c recipes --spec false}
Create component in sub folder
{ng g c recipes/recipes-list --spec false}
Create only ts file with inline
{ng g c another --flat --is --it}
Add the AppRoutingModule
{ng generate module app-routing --flat --module=app}
To disable warning
{{ng set --global}}
Create pipe
{ng g pipe filter}
Create service
{ng g s logging}
Create class
{ng g cl recipe}
Create custom directive
{ng g d highlight}
Install Bootstrap
{npm install --save bootstrap}
after install bootstrap add link to angular-cli.json.
{"../node_modules/bootstrap/dist/css/bootstrap.min.css",}
Build app
{ng build --prod --aot}
CLI version
{ng --version}
Install Firebase
{npm install --save firebase}
{npm install promise-polyfill --save-exact}
Uninstall and Install npm angular cli already done folder
npm unistall --save-dev angular-cli
npm install --save-dev @angular/cli@latest