구성 요소의 배열을 정렬 :내가 구성 요소 종류 그 구성 요소에 결과를 전달하고있다려고
// data passed to component
{
type: 'people',
res : [
{name: 'charlie', age: '55'},
{name: 'bobby', age: '19'},
{name: 'raymond', age: '39'}
]
}
// component
App.ShowResultsComponent = Ember.Component.extend({
// note sure how to set up array controller
sorted : Ember.ArrayProxy.create({
content : this.get('results.res')
}),
)}
내가 부족하면 잘 모르겠어요를/몇 가지 근본을 잘못 이해하고 있지만 배열 컨트롤러를 구성 요소의 속성으로 포함 할 수 있습니까? 모든 설명이 감사하겠습니다.
사용입니다! –