You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two sibbling (for ui-router) states (state1 and state2).
In state2: ncyBreadcrumb: parent: 'state1'
Both have similar labels: ncyBreadcrumb: label: '{{label}}'
They have similar controllers like: controller: function ($scope) {$scope.label = 'label 1'}
and controller: function ($scope) {$scope.label = 'label 2'}
According to API-Reference:
The property ncyBreadcrumbLabel can contains bindings which are evaluated against the scope of the current state controller. For example, this state's config ...
I see that bindings of both ncyBreadcrumbLabel in "step in steps" are corresponding to the same last controller in chain.
Isn't each scope in breadcrumb step supposed to refer to the state controller it was defined in?
Can i define each label in its own state dynamically, so that it would be properly displayed no matter its sorrounding is?
ps.: i also noticed it's extremely easy to shutdown browser by assignment to state2: ncyBreadcrumb: parent: state2 with no error in console
The text was updated successfully, but these errors were encountered:
YuriMasyanISS
changed the title
Loss of context in the label
Loss of context in the breadcrumb labels
Mar 10, 2017
here's my Plunk: http://plnkr.co/edit/8m2kpi8mtr9jTLF5wI00?p=preview
I have two sibbling (for ui-router) states (state1 and state2).
In state2:
ncyBreadcrumb: parent: 'state1'
Both have similar labels:
ncyBreadcrumb: label: '{{label}}'
They have similar controllers like:
controller: function ($scope) {$scope.label = 'label 1'}
and
controller: function ($scope) {$scope.label = 'label 2'}
According to API-Reference:
I see that bindings of both ncyBreadcrumbLabel in "step in steps" are corresponding to the same last controller in chain.
Isn't each scope in breadcrumb step supposed to refer to the state controller it was defined in?
Can i define each label in its own state dynamically, so that it would be properly displayed no matter its sorrounding is?
ps.: i also noticed it's extremely easy to shutdown browser by assignment to state2:
ncyBreadcrumb: parent: state2
with no error in consoleThe text was updated successfully, but these errors were encountered: