Header Ads Widget

Responsive Advertisement

Ticker

6/recent/ticker-posts

Angular CLI & important Commands.

 How to create a component using command-

Syntax:-  ng generate component login 

Here:  login is component name.

Or:- ng g c login.

 

                         Interview question

 How to create components inside a module.

Step 1:  First create a module.

How to create a module:

Syntax:   ng g m user-author

Here g for generate, m for module and user-author is module name. 

Step 2: create components inside a module

Syntax: ng g m user-author/sign-in

Here  g for generate, m for module, user-author is module name and sing-in is component name.



Post a Comment

0 Comments