Write the cli command to generate a component in angular 4?



Write the cli command to generate a component in angular 4?..

Answer / Prateek Sahai

In Angular 4, you would use the `ng generate component` command to create a new component. However, Angular 4 has been replaced by Angular 5 and later versions. If you're working with an older project, the command might still be valid.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is spa in angular?

1 Answers  


What is the difference between $http and $resource?

1 Answers  


Why angular is so popular?

1 Answers  


What is ng stand for?

1 Answers  


Explain event emitters in angular 2 and how it works?

1 Answers  


What are directives in angular7?

1 Answers  


Should you use angular?

1 Answers  


What are the key components of angular?

1 Answers  


Difference between sessionstorage, cookies, and localstorage.

1 Answers  


What is material design angular?

1 Answers  


What are scopeless controller in angularjs? Why to use them?

1 Answers  


How to use $routeparams in generating the templateurl?

1 Answers  


Categories