Area inheritance not performed with multiple names?

He breaks when moving from ( Plnkr ):

.state('home', {url: '/home', template: '<pre>{{parentProp}}</pre>', controller: function ($scope) {$scope.parentProp = ['home'];}}) 

To ( Plnkr ):

 .state('home', {url: '/home', views: {'': {template: '<pre>{{parentProp}}</pre>'}}, controller: function ($scope) {$scope.parentProp = ['home'];}})` 

In particular, I have a 'sidebar' state that I want to add as a secondary state to 'home' .

+1
source share
1 answer

To view, you need your own controller:

 .state('home', {url: '/home', views: {'': {template: '<pre>{{parentProp}}</pre>', controller: function ($scope) { $scope.parentProp = ['home']; } } }, })` 

http://plnkr.co/edit/giW3XRspEV7SEPM1UDeC?p=preview

+1
source

Source: https://habr.com/ru/post/970669/


All Articles