假设 client-2 是餐厅名
ng g module dynamic-modules/client-2 --routing
创造新的客户模块ng g component dynamic-modules/client-2/shell
在新的客户模块下创造shell组件ng g component dynamic-modules/client-2/home
在新的客户模块下创造home组件- 在新创造的客户模块文件夹内找到routing文件(client2-routing.module.ts),把
forChild
改成forRoot
- 在routing文件内define routes,eg.