From 059776bad2ea2d855f42a216988095700c35affe Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 5 Feb 2015 23:33:13 -0200 Subject: [PATCH] refactor(ngSwitch):delete default directive restriction delete the directive restriction to avoid code duplication since the default is already applied Closes #10987 --- src/ng/directive/ngSwitch.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js index 4c11f62f0421..38bc5a5537c8 100644 --- a/src/ng/directive/ngSwitch.js +++ b/src/ng/directive/ngSwitch.js @@ -130,7 +130,6 @@ */ var ngSwitchDirective = ['$animate', function($animate) { return { - restrict: 'EA', require: 'ngSwitch', // asks for $scope to fool the BC controller module