0

I am upgrading my current application to AngularJS. I have about 20+ pages and many sub pages in each. To have page navigation, do I have to define all the template URL for each in routing.js file. Do we have any better approach to meet this ? Please advise.

2
  • if you are using AngularJS V1.x then use github.com/angular-ui/ui-router that supports nested routes. Commented Mar 14, 2016 at 4:19
  • Thanks Gary, article was helpful. One question, for many page navigation do we have to prefer state router only, else can we achieve the same using ngRoute. Commented Mar 14, 2016 at 4:33

1 Answer 1

1

The reason why I recommended nested routes is because you have many pages of pagination and each page having multiple sections. Nesting - Which cannot be done using the ngRoute of 1.x but can be done in Angular2 routing only.

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

1 Comment

Sure, I do not see any other way of doing nested routing unless you use a nested routing or use static internal routing in someway for sub sections if you are using ngRoute

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.