Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 241ed50

Browse files
committed
docs(formatter): Fix a few typos
1 parent 2fbb60b commit 241ed50

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

lib/formatter/arrayify.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ part of angular.formatter_internal;
33
/**
44
* Transforms a Map into an array so that the map can be used with `ng-repeat`.
55
*
6-
* Example:
6+
* # Example
77
*
88
* <div ng-repeat="item in {'key1': 'value1', 'key2':'value2'} | arrayify">
99
* {{item.key}}: {{item.value}}

lib/formatter/filter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ typedef bool _Equals(a, b);
1010
*
1111
* # Usage
1212
*
13-
* filter: expression[:comparator]
13+
* filter:expression[:comparator]
1414
*
1515
* In addition to the expression, which is used to select a subset from the list,
1616
* you can also specify a comparator to specify how the operation is performed. 

lib/formatter/module.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* A formatter is a pure function that performs a transformation on input data from an expression.
66
* You can extend Angular by writing your own formatters and providing them as part of a custom
7-
* library. See the @[Formatter](#angular-core-annotation .Formatter) class annotation for more
7+
* library. See the @[Formatter](#angular-core-annotation.Formatter) class annotation for more
88
* detail.
99
*
1010
* Formatters are typically used within `{{ }}` to

lib/formatter/number.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ part of angular.formatter_internal;
33
/**
44
* Formats a number as text.
55
*
6-
* If the input is not a number, an empty string is returned.
7-
*
6+
* If the input is not a number, an empty string is returned. When `fractionSize` is not
7+
* provided, fraction size is computed from the current locale's number
8+
* formatting pattern. In the case of the default locale, it will be 3.
89
*
910
* # Usage
1011
*
@@ -21,10 +22,6 @@ class Number {
2122
*
2223
* - `value`: the value to format
2324
* - `fractionSize`: Number of decimal places to round the number to.
24-
*
25-
* When `fractionSize` is not provided, fraction size is computed from the current locale's number
26-
* formatting pattern. In the case of the default locale, it will be 3.
27-
*
2825
*/
2926
call(value, [fractionSize = null]) {
3027
if (value is String) value = double.parse(value);

lib/formatter/order_by.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ typedef dynamic _Mapper(dynamic e);
3131
*
3232
* # Examples
3333
*
34-
* Example 1: Simple array and single/empty expression.
34+
* ## Example 1: Simple array and single/empty expression.
3535
*
3636
* Assume that you have an array on scope called `colors` and that it has a list
3737
* of these strings – `['red', 'blue', 'green']`. You might sort these in
@@ -68,7 +68,7 @@ typedef dynamic _Mapper(dynamic e);
6868
* <li ng-repeat="color in colors | orderBy:'':true">{{color}}</li>
6969
* </ul>
7070
*
71-
* Example 2: Complex objects, single expression.
71+
* ## Example 2: Complex objects, single expression.
7272
*
7373
* You may provide a more complex expression to sort non-primitive values or
7474
* if you want to sort on a decorated/transformed value.
@@ -111,7 +111,7 @@ typedef dynamic _Mapper(dynamic e);
111111
* for each element in the list (i.e. each author object) and the sort order is
112112
* determined by the sort order of the value mapped by the callable.
113113
*
114-
* Example 3: List expressions
114+
* ## Example 3: List expressions
115115
*
116116
* Both a string expression and the callable expression are simple versions of
117117
* the more general list expression. You may pass a list as the orderBy

0 commit comments

Comments
 (0)