Skip to main content

Posts

Showing posts from July, 2019

Angular2 Commads

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 ...