How to route to new module by removing the previous module in angulae code example Example: generate module with routing in angular ng g m [ModuleName] --routing