This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
part of angular.formatter_internal;
2
2
3
3
/**
4
- * Formats a number as a currency (for example 1,234.56$ ).
4
+ * Formats a number as a currency (for example $ 1,234.56).
5
5
*
6
6
* When no currency symbol is provided, '$' is used. For more on formatters,
7
7
* see the [angular:formatter] (#angular-formatter) library.
@@ -22,7 +22,8 @@ class Currency implements Function {
22
22
*
23
23
* - `value` : the value to format as currency.
24
24
* - `symbol` : the currency symbol to use. If no symbol is specified, `$` is used.
25
- * - `leading` : places the symbol in front of the number instead of following it.
25
+ * - `leading` : when set to false, places the symbol after the number instead of before
26
+ * it.
26
27
*/
27
28
call (value, [symbol = r'$' , leading = true ]) {
28
29
if (value is String ) value = double .parse (value);
Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ part of angular.formatter_internal;
8
8
*
9
9
* Usage:
10
10
*
11
- * {{ expression | limitTo:_value_ }}
11
+ * {{ expression | limitTo:_number_ }}
12
12
*
13
13
*
14
- * <div ng-repeat="item in expression | limitTo:_value_ ">{{item}}</div>
14
+ * <div ng-repeat="item in expression | limitTo:_number_ ">{{item}}</div>
15
15
*
16
16
*
17
- * Where the input expression is a [List] or [String] , and `limitTo` evaluates to :
17
+ * Where the input expression is a [List] or [String] , and `limitTo` is :
18
18
*
19
- * - **a positive integer**: return _value_ items from the beginning of the list or string
19
+ * - **a positive integer**: return _number_ items from the beginning of the list or string
20
20
* expression.
21
- * - **a negative integer**: return _value_ items from the end of the list or string expression.
22
- * - **null or non-integer**: return an empty list or string.
21
+ * - **a negative integer**: return _number_ items from the end of the list or string expression.
23
22
* - **`|limitTo|` greater than the size of the expression**: return the entire expression.
23
+ * - **null** or all other cases: return an empty list or string.
24
24
*
25
25
* When operating on a [List] , the returned list is always a copy even when all
26
26
* the elements are being returned.
You can’t perform that action at this time.
0 commit comments