7
嗨我需要訂購基於兒童財產的角度列表。Angularjs orderBy兒童財產
我有這樣的模式:
$scope.data = [{name:"John",type:{talent:"genius",val:99}},
{name:"Paul",type:{talent:"genius",val:89}},
{name:"Ringo",type:{talent:"lucky",val:29}}];
我需要顯示只有人才的名稱的列表。所以,我試圖這樣的事情:
item in data|orderBy:{type.val}
http://jsbin.com/ObIqUyix/4/edit