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

Commit 048ed5c

Browse files
committed
docs(formatter): improvements to currency, date, filter, and formatter library
1 parent 7a340ac commit 048ed5c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/core/annotation_src.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,11 @@ abstract class DetachAware {
547547
}
548548

549549
/**
550-
* Use @[Formatter] annotation to register a new formatter. A formatter is a class
551-
* with a [call] method (a callable function).
550+
* Use the @[Formatter] class annotation to register a new formatter.
551+
*
552+
* A formatter is a pure function that performs a transformation on input data from an expression.
553+
* For more on formatters in Angular, see the documentation for the
554+
* [angular:formatter](#angular-formatter) library.
552555
*
553556
* Usage:
554557
*

lib/formatter/currency.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
part of angular.formatter_internal;
22

33
/**
4-
* Formats a number as a currency (for example $1,234.56).
4+
* Formats a number as a currency (for example 1,234.56$).
55
*
66
* When no currency symbol is provided, '$' is used. For more on formatters,
77
* see the [angular:formatter](#angular-formatter) library.

lib/formatter/date.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ part of angular.formatter_internal;
2323
*
2424
*
2525
* For more on explicit formatting of dates and date syntax, see the documentation for the
26-
* [DartFormat class](http://api.dartlang.org/docs/releases/latest/intl/DateFormat.html).
26+
* [DartFormat class](https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/intl/intl.DateFormat).
2727
*
2828
*/
2929
@Formatter(name:'date')

0 commit comments

Comments
 (0)