Find solution

How to open a new ng-view inside ng-view?

Here are 11 best answers to ‘How to open a new ng-view inside ng-view?’ - the most relevant comments and solutions are submitted by users of Stack Overflow, Quora and Stackoverflow.com.

Best solution

  • How use ng-view inside ng-view?

    I have main ng-view, and controller with left\right side. The right side is fixed, but left side I want change by other templates and controllers. http://plnkr.co/edit/MTxmmZWRY7O0nH88qK3F <div ng-controller="MainCtrl as main"> Choose: <a href="Book/Moby">Moby</a> | <a href="Book/Moby/ch/1">Moby: Ch1</a> | <a href="Book/Gatsby">Gatsby</a> | <a href="Book/Gatsby/ch/4?key=value">Gatsby...

    Answer:

    I used a solution derived from here: http://www.bennadel.com/blog/2420-Mapping-AngularJS-Routes-Onto...

    Mark as irrelevant Undo

Other solutions

Sources that may help