Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 3613a60

Browse files
diegofss11pkozlowski-opensource
authored andcommitted
refactor(ngPluralize):delete default directive restriction
delete the directive restriction to avoid code duplication since the default is already applied Closes #11301
1 parent 2979bf3 commit 3613a60

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ng/directive/ngPluralize.js

-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ var ngPluralizeDirective = ['$locale', '$interpolate', '$log', function($locale,
180180
IS_WHEN = /^when(Minus)?(.+)$/;
181181

182182
return {
183-
restrict: 'EA',
184183
link: function(scope, element, attr) {
185184
var numberExp = attr.count,
186185
whenExp = attr.$attr.when && element.attr(attr.$attr.when), // we have {{}} in attrs

0 commit comments

Comments
 (0)