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

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

Issue 1058283006: Update pubspecs and dependencies to get pkgbuild tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
deleted file mode 100644
index 5908c0225d6bbc1dc7fc2fe4997cb7ac9f2ae0b0..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/lib/directive/ng_bind_html.dart
+++ /dev/null
@@ -1,33 +0,0 @@
-part of angular.directive;
-
-/**
- * Creates a binding that will innerHTML the result of evaluating the
- * `expression` bound to `ng-bind-html` into the current element in a secure
- * way. This expression must evaluate to a string. The innerHTML-ed content
- * 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
- * HTML.
- *
- * Example:
- *
- * <div ng-bind-html="htmlVar"></div>
- */
-@NgDirective(
- selector: '[ng-bind-html]',
- map: const {'ng-bind-html': '=>value'})
-class NgBindHtmlDirective {
- 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'
- * documentation.
- */
- 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