Index: third_party/pkg/angular/lib/directive/ng_cloak.dart |
diff --git a/third_party/pkg/angular/lib/directive/ng_cloak.dart b/third_party/pkg/angular/lib/directive/ng_cloak.dart |
index a661af8e5377c4c415f5cb2de7487b98fb76ddfa..557d37ddc7af62b868eec94187dfa890aea3cc00 100644 |
--- a/third_party/pkg/angular/lib/directive/ng_cloak.dart |
+++ b/third_party/pkg/angular/lib/directive/ng_cloak.dart |
@@ -12,7 +12,7 @@ part of angular.directive; |
* |
* `ngCloak` works in cooperation with a css. Following is the css rule: |
* |
- * [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { |
+ * [ng-cloak], [data-ng-cloak], .ng-cloak { |
* display: none !important; |
* } |
* |
@@ -22,11 +22,11 @@ part of angular.directive; |
* template it deletes the `ngCloak` element attribute, which makes the compiled |
* element visible. |
*/ |
-@NgDirective(selector: '[ng-cloak]') |
-@NgDirective(selector: '.ng-cloak') |
-class NgCloakDirective { |
- NgCloakDirective(dom.Element element) { |
+@Decorator(selector: '[ng-cloak]') |
+@Decorator(selector: '.ng-cloak') |
+class NgCloak { |
+ NgCloak(dom.Element element, Animate animate) { |
element.attributes.remove('ng-cloak'); |
- element.classes.remove('ng-cloak'); |
+ animate.removeClass(element, 'ng-cloak'); |
} |
} |