1

Nested ng-view is possible in angularjs or if any alternative solution for this one. If it is possible for ng-view inside the ng-view.

Rajamohan Anguchamy
  • 1,726
  • 1
  • 17
  • 35

1 Answers1

2

use ui-router for nested views.. read about comparison between ngRoute & uiRouter here

below is an example of how to define nested views...

.state('bulletinBoard', {
        url: '/bulletinBoard',
        templateUrl: '../src/app/bulletinBoard/views/bulletinBoard.part.html',
        views: {
            'tradeFeed': {
                controller: 'tradeFeedController',
                templateUrl: '../src/app/bulletinBoard/views/tradeFeed.part.html'
            },
            'newsFeed': {
                controller: 'newsFeedController',
                templateUrl: '../src/app/bulletinBoard/views/newsFeed.part.html'
            }
        }
        });

the best source for reading about nested view, is the official documentation link here

harishr
  • 17,807
  • 9
  • 78
  • 125