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

Leave a Reply