0
我正在嘗試使用orderBy
在ng-repeat
使用角度js.but但它不能排序我的列表。有我的代碼?爲什麼orderBy在angularjs中不能在ngrepeat中工作?
如何整理我的代碼
https://jsfiddle.net/7MhLd/1921/
var myApp = angular.module('myApp', []);
function MyCtrl($scope) {
$scope.lines = {
"a" : {name:"bb"},
"aa": {name: 'aa'},
"zz": {name:"zz"},
"oo": {name: 'oo'},
"kk": {name:"k"},
"j" : {name: "a"},
"n" : {name:"n"},
"c" : {name: "c"}
}
}
看到這個回答http://stackoverflow.com/questions/26474920/order-by-object-key-in-ng-repeat –
重複問題 – byteC0de