Saturday, December 22, 2018

Angular 4 Interview Questions

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;
It generates the component and adds the component to module declarations.

 

No comments:

Post a Comment

lEARNING: SQL | WHERE Clause

SQL | WHERE Clause WHERE keyword is used for fetching filtered data in a result set. It is used to fetch data accord...