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
ng g component moduleName/newComponent

01. Validators

Only integer with pattern

Range between two number .

Leave a Reply

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