How to generate folder with Lazy Loading Prefix (+) using angular cli?

北战南征 提交于 2019-12-24 17:24:00

问题


We began to rewrite our angular 2 app using mainly angular-cli to generate components etc.

The Problem now is, in order to adhere to the Style Guide, major component folders, which later may be loaded lazily should be prefixed with a "+".

Using --help of the cli generate instruction I could see two options :

--prefix
--route. 

But setting these to true had no effect on the generated folder name.

My question now is, what is the correct way to generate lazy loaded folders prefixed with a "+" using angular-cli ?


回答1:


The + was auto-generated when generating routes which is currently disabled as the new router integration is being added.

That being said the style guide is likely going to be updated to remove that suggestion as a few web servers are having issues with that character.



来源:https://stackoverflow.com/questions/38639895/how-to-generate-folder-with-lazy-loading-prefix-using-angular-cli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!