Create a Angular 2 Component Command

Components are simply directives that are always associated with a direct template.

Execute the below command in the command prompt. after created the angular 2 project.

> ng generate component simple-form --inline-template --inline-style
                                                               or

> ng g c simple-form -it -is

Comments