Skip to content

Commit 7bef522

Browse files
committed
docs($filter): improve description formatting
1 parent 4ef2169 commit 7bef522

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/ng/filter.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,17 @@
7373
* @name $filter
7474
* @kind function
7575
* @description
76-
* Filters are used for formatting data displayed to the user. They can be used in view
77-
* templates, controllers or services. Angular comes with a collection of
78-
* [built-in filters](api/ng/filter), but it is easy to define your own as well.
76+
* Filters are used for formatting data displayed to the user.
77+
*
78+
* They can be used in view templates, controllers or services.Angular comes
79+
* with a collection of [built-in filters](api/ng/filter), but it is easy to
80+
* define your own as well.
7981
*
8082
* The general syntax in templates is as follows:
8183
*
82-
* {{ expression [| filter_name[:parameter_value] ... ] }}
84+
* ```html
85+
* {{ expression [| filter_name[:parameter_value] ... ] }}
86+
* ```
8387
*
8488
* @param {String} name Name of the filter function to retrieve
8589
* @return {Function} the filter function

0 commit comments

Comments
 (0)