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

Unified Diff: third_party/pkg/angular/lib/core/formatter.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
« no previous file with comments | « third_party/pkg/angular/lib/core/filter.dart ('k') | third_party/pkg/angular/lib/core/interpolate.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/lib/core/formatter.dart
diff --git a/third_party/pkg/angular/lib/core/formatter.dart b/third_party/pkg/angular/lib/core/formatter.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1762c28a623354f07f0477fbc7af7bc0d47771c6
--- /dev/null
+++ b/third_party/pkg/angular/lib/core/formatter.dart
@@ -0,0 +1,20 @@
+part of angular.core_internal;
+
+
+/**
+ * Registry of formatters at runtime.
+ */
+@Injectable()
+class FormatterMap extends AnnotationMap<Formatter> {
+ Injector _injector;
+ FormatterMap(Injector injector, MetadataExtractor extractMetadata)
+ : this._injector = injector,
+ super(injector, extractMetadata);
+
+ call(String name) {
+ var filter = new Formatter(name: name);
+ var filterType = this[filter];
+ return _injector.get(filterType);
+ }
+}
+
« no previous file with comments | « third_party/pkg/angular/lib/core/filter.dart ('k') | third_party/pkg/angular/lib/core/interpolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698