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.
Asked
Active
Viewed 660 times
1

Rajamohan Anguchamy
- 1,726
- 1
- 17
- 35
-
4look at `ui-router`, and use nested `ui-view`. – Matt Way Sep 20 '14 at 05:15
-
@MattWay ui-view is like ng-view – Rajamohan Anguchamy Sep 20 '14 at 05:19
-
1As @MattWay says ui-router's nested states is what you're after. – Mohammad Sepahvand Sep 20 '14 at 05:19
-
http://stackoverflow.com/questions/15637350/nesting-ng-views-in-angular-js – Alexey Semenyuk Sep 20 '14 at 06:27
-
http://stackoverflow.com/questions/22187231/doubly-nested-views-ui-router-or-ui-bootstrap-tabs-accordion – cheekybastard Sep 21 '14 at 01:52
-
@MattWay ui-router stable version is aviable for download – Rajamohan Anguchamy Sep 23 '14 at 07:05
1 Answers
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