File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060
6161 Search: <input ng-model="searchText">
6262 <table id="searchTextResults">
63- <tr><th>Name</th><th>Phone</th><tr>
63+ <tr><th>Name</th><th>Phone</th></ tr>
6464 <tr ng-repeat="friend in friends | filter:searchText">
6565 <td>{{friend.name}}</td>
6666 <td>{{friend.phone}}</td>
67- <tr>
67+ </ tr>
6868 </table>
6969 <hr>
7070 Any: <input ng-model="search.$"> <br>
7171 Name only <input ng-model="search.name"><br>
7272 Phone only <input ng-model="search.phone"å><br>
7373 Equality <input type="checkbox" ng-model="strict"><br>
7474 <table id="searchObjResults">
75- <tr><th>Name</th><th>Phone</th><tr>
75+ <tr><th>Name</th><th>Phone</th></ tr>
7676 <tr ng-repeat="friend in friends | filter:search:strict">
7777 <td>{{friend.name}}</td>
7878 <td>{{friend.phone}}</td>
79- <tr>
79+ </ tr>
8080 </table>
8181 </doc:source>
8282 <doc:scenario>
Original file line number Diff line number Diff line change 5252 (<a href ng-click="predicate = '-name'; reverse=false">^</a>)</th>
5353 <th><a href="" ng-click="predicate = 'phone'; reverse=!reverse">Phone Number</a></th>
5454 <th><a href="" ng-click="predicate = 'age'; reverse=!reverse">Age</a></th>
55- <tr>
55+ </ tr>
5656 <tr ng-repeat="friend in friends | orderBy:predicate:reverse">
5757 <td>{{friend.name}}</td>
5858 <td>{{friend.phone}}</td>
5959 <td>{{friend.age}}</td>
60- <tr>
60+ </ tr>
6161 </table>
6262 </div>
6363 </doc:source>
You can’t perform that action at this time.
0 commit comments