mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-28 12:55:48 +08:00
docs(tutorial/step-5): include sort and filter in json view experiment
Closes #10082
This commit is contained in:
committed by
Peter Bacon Darwin
parent
2901c53f42
commit
eec2020518
@@ -258,8 +258,8 @@ You should now see the following output in the Karma tab:
|
|||||||
|
|
||||||
# Experiments
|
# Experiments
|
||||||
|
|
||||||
* At the bottom of `index.html`, add a `<pre>{{phones | json}}</pre>` binding to see the list of phones
|
* At the bottom of `index.html`, add a `<pre>{{phones | filter:query | orderBy:orderProp | json}}</pre>`
|
||||||
displayed in json format.
|
binding to see the list of phones displayed in json format.
|
||||||
|
|
||||||
* In the `PhoneListCtrl` controller, pre-process the http response by limiting the number of phones
|
* In the `PhoneListCtrl` controller, pre-process the http response by limiting the number of phones
|
||||||
to the first 5 in the list. Use the following code in the `$http` callback:
|
to the first 5 in the list. Use the following code in the `$http` callback:
|
||||||
|
|||||||
Reference in New Issue
Block a user