What is angular CLI - amresh087/newronaRepos GitHub Wiki
-
Angular CLI(Command Line Interface) is a command line interface to scaffold and build angular apps using nodejs style (commonJs) modules. You need to install using below npm command, What is angular CLI?
Below are the list of few commands, which will come handy while creating angular projectsnpm install @angular/cli@latest
-
Creating New Project: ng new
-
Generating Components, Directives & Services: ng generate/g The different types of commands would be,
- ng generate class my-new-class: add a class to your application
- ng generate component my-new-component: add a component to your application
- ng generate directive my-new-directive: add a directive to your application
- ng generate enum my-new-enum: add an enum to your application
- ng generate module my-new-module: add a module to your application
- ng generate pipe my-new-pipe: add a pipe to your application
- ng generate service my-new-service: add a service to your application
-
Running the Project: ng serve
-