json에서 like_count
으로 내 반복을 주문하려면 어떻게해야합니까?Ng-repeat orderBy 값
나는 그에게 배쉬를 주었지만 나는 분명히 뭔가를 놓치고있다.
{
"image_url" : "bde2cca8323d098edf43389119af7748.jpg",
"title" : "This is the title",
"like_count" : "15",
"creator" : {
"profile_img" : "john-doe.jpg",
"username" : "JD",
"url" : "/John-Doe",
"first_name" : "John",
"last_name" : "Doe",
"location" : "Sydney, Australia"
}
}, {
"image_url" : "bjk234823d3232345343.jpg",
"title" : "This is the title",
"like_count" : "89",
"creator" : {
"profile_img" : "Jane-doe.jpg",
"username" : "JD",
"url" : "/Jane-Doe",
"first_name" : "Jane",
"last_name" : "Doe",
"location" : "Melbourne, Australia"
}
}
합니까하지'해 orderBy : 'like_count'' 작업을
이 반복
이 데이터 구조입니다? – geoand
문자열 값으로 정렬합니까? –
'orderBy : '- like_count''는 완벽하게 작동합니다! – Daimz