ng create directive command, angular 2 code example
Example 1: auto generate component angular
ng g component [directory-where-you-want-to-save-the-component]/[new-component-name]
ng generate component [directory-where-you-want-to-save-the-component]/[new-component-name]
Example 2: ng g component
ng g class [options]