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

Unified Diff: third_party/pkg/angular/lib/formatter/json.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/formatter/json.dart
diff --git a/third_party/pkg/angular/lib/filter/json.dart b/third_party/pkg/angular/lib/formatter/json.dart
similarity index 50%
rename from third_party/pkg/angular/lib/filter/json.dart
rename to third_party/pkg/angular/lib/formatter/json.dart
index f2c0efa80dfcf2c1c93dbf09fd12b6d27c6366f2..8bc45666d835ae38ea85a0f518ad7382bc3f2a10 100644
--- a/third_party/pkg/angular/lib/filter/json.dart
+++ b/third_party/pkg/angular/lib/formatter/json.dart
@@ -1,14 +1,14 @@
-part of angular.filter;
+part of angular.formatter_internal;
/**
- * Allows you to convert a JavaScript object into JSON string. This filter is
+ * Allows you to convert a JavaScript object into JSON string. This formatter is
* mostly useful for debugging.
*
* Usage:
*
* {{ json_expression | json }}
*/
-@NgFilter(name:'json')
-class JsonFilter {
- call(text) => JSON.encode(text);
+@Formatter(name:'json')
+class Json implements Function {
+ String call(jsonObj) => JSON.encode(jsonObj);
}
« no previous file with comments | « third_party/pkg/angular/lib/formatter/filter.dart ('k') | third_party/pkg/angular/lib/formatter/limit_to.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698