1. Open Visual Studio Code
go to angular project in Node.js Cmmand Prompt, then
>code .
2. Debug Or Compile in Visual Studio Code
>ng serve --open
or
E:\E Drive\RND\Node\Angular2Apps\MyAng2App>ng serve --open
3. Generate New Directory with .ts and .html and .css file like login
E:\E Drive\RND\Node\Angular2Apps\MyAng2App>ng generate component login
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng generate component header
4. Generate Services
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng generate service blogpost/blogpost
5.Genetate Module in auth folder
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng generate module auth/auth-routing --flat --module=app
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng g module login
6. Install Local Storage Like Session
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> npm install angular-web-storage --save
7. Generate Gaurd
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng generate guard auth/auth
8. Generate Class
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng generate class http-interceptors/auth-interceptor
go to angular project in Node.js Cmmand Prompt, then
>code .
2. Debug Or Compile in Visual Studio Code
>ng serve --open
or
E:\E Drive\RND\Node\Angular2Apps\MyAng2App>ng serve --open
3. Generate New Directory with .ts and .html and .css file like login
E:\E Drive\RND\Node\Angular2Apps\MyAng2App>ng generate component login
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng generate component header
4. Generate Services
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng generate service blogpost/blogpost
5.Genetate Module in auth folder
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng generate module auth/auth-routing --flat --module=app
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng g module login
6. Install Local Storage Like Session
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> npm install angular-web-storage --save
7. Generate Gaurd
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng generate guard auth/auth
8. Generate Class
PS E:\Rinkesh\Angular2\Ang2_Shoes_templt2> ng generate class http-interceptors/auth-interceptor
9. Check Version
$ ng v
Comments
Post a Comment