Angular 4 Interview Questions
Write the CLI command to generate a component in Angular4.
Components are just simple classes which are declared as components with the help of component decorators.It becomes easy to create an application which already works, with the help of angular CLI commands. “Ng generate” is used to generate components, routes, services, and pipes. Simple test shells are also created with the help of this CLI command. For generating a component in angular4 with the help of CLI command, you need to follow the following syntax-
- ng generate component component_name;
No comments:
Post a Comment