OLD | NEW |
1 part of angular.filter; | 1 part of angular.formatter_internal; |
2 | 2 |
3 /** | 3 /** |
4 * Converts string to uppercase. | 4 * Converts string to uppercase. |
5 * | 5 * |
6 * Usage: | 6 * Usage: |
7 * | 7 * |
8 * {{ uppercase_expression | uppercase }} | 8 * {{ uppercase_expression | uppercase }} |
9 */ | 9 */ |
10 @NgFilter(name:'uppercase') | 10 @Formatter(name:'uppercase') |
11 class UppercaseFilter { | 11 class Uppercase implements Function { |
12 call(String text) => text == null ? text : text.toUpperCase(); | 12 call(String text) => text == null ? text : text.toUpperCase(); |
13 } | 13 } |
OLD | NEW |