ng generate skip import code example
Example 1: skip import angular 6
ng g component component-name --skip-import
Example 2: npm generate component component name command skip-import
ng g c componentName --module app (if your module is app)
ng g component component-name --skip-import
ng g c componentName --module app (if your module is app)