How to generate folder with Lazy Loading Prefix (+

2019-07-24 18:42发布

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条回答
狗以群分
2楼-- · 2019-07-24 19:43

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.

查看更多
登录 后发表回答