Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I was formerly using Angular version 6, now I have upgraded to 7. But when I try to create a new project in CLI using ng new [app-name] it just starts without asking if I want to include routing in my project or the styling.

P.S: I have the latest version of Angular i.e 7.0.2.

like image 298
Damilola Oluwafemi Avatar asked Nov 05 '18 11:11

Damilola Oluwafemi


2 Answers

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

like image 89
veeresh patil Avatar answered Nov 14 '22 20:11

veeresh patil


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

enter image description here

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
like image 29
Sami Haroon Avatar answered Nov 14 '22 20:11

Sami Haroon