Index: third_party/pkg/angular/lib/directive/ng_bind_html.dart |
diff --git a/third_party/pkg/angular/lib/directive/ng_bind_html.dart b/third_party/pkg/angular/lib/directive/ng_bind_html.dart |
index 5908c0225d6bbc1dc7fc2fe4997cb7ac9f2ae0b0..5108de6887125223f95f10a894bdc1cedf340b1b 100644 |
--- a/third_party/pkg/angular/lib/directive/ng_bind_html.dart |
+++ b/third_party/pkg/angular/lib/directive/ng_bind_html.dart |
@@ -7,27 +7,27 @@ part of angular.directive; |
* will be sanitized using a default [NodeValidator] constructed as `new |
* dom.NodeValidatorBuilder.common()`. In a future version, when Strict |
* Contextual Escaping support has been added to Angular.dart, this directive |
- * will allow one to bypass the sanitizaton and innerHTML arbitrary trusted |
+ * will allow one to bypass the sanitization and innerHTML arbitrary trusted |
* HTML. |
* |
* Example: |
* |
* <div ng-bind-html="htmlVar"></div> |
*/ |
-@NgDirective( |
+@Decorator( |
selector: '[ng-bind-html]', |
map: const {'ng-bind-html': '=>value'}) |
-class NgBindHtmlDirective { |
+class NgBindHtml { |
final dom.Element element; |
final dom.NodeValidator validator; |
- |
- NgBindHtmlDirective(this.element, dom.NodeValidator this.validator); |
+ |
+ NgBindHtml(this.element, dom.NodeValidator this.validator); |
/** |
* Parsed expression from the `ng-bind-html` attribute. The result of this |
* expression is innerHTML'd according to the rules specified in this class' |
* documentation. |
*/ |
- set value(value) => element.setInnerHtml(value == null ? '' : value.toString(), |
- validator: validator); |
+ void set value(value) => element.setInnerHtml( |
+ value == null ? '' : value.toString(), validator: validator); |
} |