Reputation: 1736
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.
Upvotes: 1
Views: 665
Reputation: 18065
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
Upvotes: 2