Posted On: Feb 22, 2018
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-
It generates the component and adds the component to module declarations.
Never Miss an Articles from us.
Here are the elements which are present in the component directory structure anf modules:-module.ts- in this, the angu..