angular 7 does not ask if to use routing when i create a new project

好久不见. 提交于 2019-12-05 16:20:43
veeresh patil

ng new {Project-name} command by default creates project without routing.

You need to set routing flag as true while creating project as below(by default this routing flag will be false),

ng new {Project-name} --routing=true

Go through angular documentation for more details

ng new --help run this command this will open up the things you can do while creating project.

Lets say I wanna create Angular project with routing and .scss styles then I would do it by the following command.

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