add routes to Angular CLI: 10.0.5 code example Example: how to create app.routing.module.ts in angular 6 ng generate module app-routing --flat --module=app