is it necessary to generate component through ng code example
Example 1: ng generate component
ng g component [component name]
Example 2: ng generate new component
ng generate component <name> [options]
ng g component [component name]
ng generate component <name> [options]