Angular 6 project basic to advance commands

01. Install angular CLI
npm -g install @angular/cli
npm install -g @angular/cli@latest

02. Check angular is installed on your machine .
ng version

Sometime node may not have to work .So update angular cli with node
03. Create a project with route
ng new crmapp –route

04. Create a component
ng generate component ContactList –route

05.Create routing
ng generate module app-routing –flat –module=app

06.Create a component inside a module
ng g component newComponent
and
ng g component moduleName/newComponent

Leave a Reply

Your email address will not be published. Required fields are marked *