Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5548328 commit 9b7c1d0Copy full SHA for 9b7c1d0
src/ng/directive/ngSwitch.js
@@ -63,9 +63,10 @@ var NG_SWITCH = 'ng-switch';
63
var ngSwitchDirective = valueFn({
64
restrict: 'EA',
65
require: 'ngSwitch',
66
- controller: function ngSwitchController() {
+ // asks for $scope to fool the BC controller module
67
+ controller: ['$scope', function ngSwitchController() {
68
this.cases = {};
- },
69
+ }],
70
link: function(scope, element, attr, ctrl) {
71
var watchExpr = attr.ngSwitch || attr.on,
72
selectedTransclude,
0 commit comments