09.Anguler Command.


 

Anguler Command.

01.  ng new myApp  - create your first Angular app.

02.  cd myApp  - Navigate to your app.

03.  ng serve  - Start your server to run app.

 

04.  Creating a model – Example : ng g m sample-module

ng generate module <name> [options]

ng generate m <name> [options]

ng g module <name> [options]

ng g m <name> [options]

 

05.  Creating a component – Example : ng g c sample-component

ng generate component <name> [options]

ng generate c <name> [options]

ng g component <name> [options]

ng g c <name> [options]

 

06.  Service– Example : ng g s sample-service

ng g s <name>[options]

 

07.  Class – Example : ng g cl sample-class

ng g cl <name>[options] --type=model

 

08.  Model class – Example : ng g cl sample-model --type=model

ng g cl <name>[options] --type=model

Comments

Popular posts from this blog

09.Data Binding.

Database - Topics

02. Spring – Creating spring project clone it with GIT step by step.