Quantcast
Viewing all articles
Browse latest Browse all 42

How to set list order by in Angular Js

We have learn about angular js to set list in ascending and descending order.

To set table list as an order by in Angular Js by using this code (orderBy : ‘Country’)
<div>
<table>
<tbody>
<tr ng-repeat=”x in names | orderBy : ‘Country’ ” >
<td>{{ x.Name }}</td>
<td>{{ x.Country }}</td>
</tr>
</tbody>
</table>
</div>

We got this blog from www.w3schools.com for blog more information Click Here

The post How to set list order by in Angular Js appeared first on PHP Blog Spot.


Viewing all articles
Browse latest Browse all 42

Trending Articles