-
Notifications
You must be signed in to change notification settings - Fork 248
docs(formatter): edit and update formatter docs #1036
Conversation
@@ -1,8 +1,9 @@ | |||
part of angular.formatter_internal; | |||
|
|||
/** | |||
* Allows you to convert a JavaScript object into JSON string. This formatter is | |||
* mostly useful for debugging. | |||
* Converts a JavaScript object into a JSON string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JS is wrong here -> "an object" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Updated.
* indicates a list of fallback expressions to use when a comparision results in the items | ||
* being equal. | ||
* | ||
* If the expression is explicitly empty(`orderBy:```), the elements are sorted in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inner quotes should be ''
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, fixed.
@@ -3,7 +3,32 @@ part of angular.formatter_internal; | |||
typedef dynamic _Mapper(dynamic e); | |||
|
|||
/** | |||
* Orders the provided [Iterable] by the `expression` predicate. | |||
* Orders the the elements of an object by a predicate expression. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object -> iterable (only iterables can be sorted)
No description provided.