We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a7619 commit ce3b616Copy full SHA for ce3b616
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