Mohammad Umair Khan
Trainer, Mentor, Foo, Bar !
Scaffolding Angular Apps
Scaffold
Develop
Test
Publish
Lint
Configure
$ npm i -g @angular/cli
$ ng new myapp
Creates a new folder with ready to develop Angular appĀ
$ ng g <blueprint> <options>
Generates Angular components, services etc.
$ ng serve
Pops up a development environment with webpack
$ ng lint
Lints the entire application and displays the result on the command line
$ ng set <key> <value>
Set the value against the key in the Angular CLI config
$ ng get <key> <value>
Get the value against the key in the Angular CLI config
$ ng eject
Pulls out the webpack configuration for your app
$ ng e2e <options>
Starts a protractor environment with selenium webdriver for e2e testing
$ ng test
Starts a karma server for unit testing
$ ng build
Packages the app into a distributable bundle
$ ng help <command>
The ultimate help on the CLI
$ ng version
Displays the version of @angular libs
$ ng completion
Create completion scripts for bash/zsh
2 days of Angular 2 Awesomeness
Walk in as a noob, walk out as an Angular Pro
Next batch: 5th, 6th May, 2017
By Mohammad Umair Khan