AngularJS orderby integer field not working properly

后端 未结 6 1331
無奈伤痛
無奈伤痛 2021-01-02 05:45

I just took the simplest demo from http://docs.angularjs.org/api/ng.filter:orderBy and just change the value of age to have different number of digit. It stop working as it

6条回答
  •  攒了一身酷
    2021-01-02 06:35

    AngularJs have in built functionalities to sort the values.But before sorting float values we need to convert the values to float using the parseFloat() javavscript function .

    http://hubpages.com/technology/How-to-sort-table-content-filter-table-data-and-add-pagination-using-Angular-JS

提交回复
热议问题