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

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

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 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);
}
« 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