-2

I use this command for create myProject :

ng new myProject

Instead of :

ng new myProject --routing

So , I dont have app-routing.modules.ts file in myProject/src/app/

How can I alter myProject with angular-cli,to add some options that I forget them?

2
  • 2
    as for --routing, you'd have to add a Routing module manually (which is easy). For some other options, you can edit your .angular-cli.json Commented Feb 9, 2018 at 17:55
  • 1
    Read, learn, use: github.com/angular/angular-cli/wiki Commented Feb 9, 2018 at 17:59

1 Answer 1

2

You can use this command to generate routing module

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.