Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: third_party/pkg/angular/lib/directive/ng_bind_html.dart

Issue 180873006: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 d7c3a89ae56aeee6d1c9b291aea43f52b1d5a8af..5908c0225d6bbc1dc7fc2fe4997cb7ac9f2ae0b0 100644
--- a/third_party/pkg/angular/lib/directive/ng_bind_html.dart
+++ b/third_party/pkg/angular/lib/directive/ng_bind_html.dart
@@ -16,21 +16,18 @@ part of angular.directive;
*/
@NgDirective(
selector: '[ng-bind-html]',
- map: const {'ngBindHtml': '=>value'})
+ map: const {'ng-bind-html': '=>value'})
class NgBindHtmlDirective {
- // The default HTML sanitizer. Eventually, we'll make this configurable or
- // use an optionally loaded `$sanitize` service.
- static final dom.NodeValidator validator = new dom.NodeValidatorBuilder.common();
-
- dom.Element element;
-
- NgBindHtmlDirective(this.element);
+ final dom.Element element;
+ final dom.NodeValidator validator;
+
+ NgBindHtmlDirective(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'
- * documention.
+ * documentation.
*/
- set value(value) => element.setInnerHtml((value == null ? '' : value.toString()),
- validator: validator) ;
+ set value(value) => element.setInnerHtml(value == null ? '' : value.toString(),
+ validator: validator);
}
« no previous file with comments | « third_party/pkg/angular/lib/directive/ng_bind.dart ('k') | third_party/pkg/angular/lib/directive/ng_bind_template.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698