setting route of component angular code example Example: generate module with routing in angular ng g m [ModuleName] --routing