欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

ng generate module app-routing --flat --module=app

ng generate module app-routing --flat --module=app

--flat放入文件src/app而不是自己的文件夹。
--module=app告诉CLI将其注册到imports数组中AppModule

见 https://angular.io/tutorial/toh-pt5  有大用

普通分类: