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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 part of angular.filter; 1 part of angular.formatter_internal;
2 2
3 /** 3 /**
4 * Allows you to convert a JavaScript object into JSON string. This filter is 4 * Allows you to convert a JavaScript object into JSON string. This formatter is
5 * mostly useful for debugging. 5 * mostly useful for debugging.
6 * 6 *
7 * Usage: 7 * Usage:
8 * 8 *
9 * {{ json_expression | json }} 9 * {{ json_expression | json }}
10 */ 10 */
11 @NgFilter(name:'json') 11 @Formatter(name:'json')
12 class JsonFilter { 12 class Json implements Function {
13 call(text) => JSON.encode(text); 13 String call(jsonObj) => JSON.encode(jsonObj);
14 } 14 }
OLDNEW
« 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