Reputation: 3
https://i.sstatic.net/KiXzj.jpg
https://i.sstatic.net/RthNi.jpg
Upvotes: 0
Views: 262
Reputation: 221
We cannot declare the routes automatically, its totally depends on the functionality. We need to add them manually.
Upvotes: 0
Reputation: 2265
As of I know, Angular cli generates a component on ng g c comp-name and add the component to the nearest angular module to make the component work.
Putting the component in the routes is at the sole discretion of the developer and hence angular cli will not put it in the routes. It has to be done manually by the developer
Upvotes: 1