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
If an ngSwitchWhen or ngSwitchDefault directive is on an element that also
contains a transclusion directive (such as ngRepeat) the new scope should
be the one provided by the bound transclusion function.
Previously we were incorrectly creating a simple child of the main ngSwitch
scope.
Closesangular#8235
it("should use the correct transclusion scope if there is a transclude directive on the ng-swith-when/ng-switch-default element",inject(function($rootScope,$compile){
255
+
element=$compile(
256
+
'<div ng-switch="foo">'+
257
+
'<pre ng-switch-when="item1" ng-repeat="bar in bars">'+
0 commit comments