create component with module and routing in angular 8 code example
Example 1: generate module with routing in angular
ng g m [ModuleName] --routing
Example 2: angular generate component
ng g component componentname
Example 3: ng new module w route
// Use this command to create a lazy-loaded feature module with routing, along with its stub component.
ng generate module <MODULE_NAME> --route <ROUTE> --module app.module