Skip to content

Commit 7566372

Browse files
committed
uiBreadcrumbs: Copy state locals to proxy state.
This allows using state variables in interpolation when using proxys.
1 parent 2355536 commit 7566372

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/directives/uiBreadcrumbs/uiBreadcrumbs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
if (typeof scope.abstractProxyProperty !== 'undefined') {
8888
proxyStateName = getObjectValue(scope.abstractProxyProperty, currentState);
8989
if (proxyStateName) {
90-
workingState = $state.get(proxyStateName);
90+
workingState = angular.copy($state.get(proxyStateName));
91+
workingState.locals = currentState.locals;
9192
} else {
9293
workingState = false;
9394
}
@@ -172,4 +173,4 @@
172173
}
173174
};
174175
}]);
175-
})();
176+
})();

0 commit comments

Comments
 (0)