2012-03-16 8 views
0

최근 검색 용어 목록이 포함 된 arrayController가 있습니다. 항목을 배열에 푸시하면 한 가지 문제를 제외하고 뷰의 항목 수가 올바르게 표시됩니다 ... 인쇄 할 이름을 가져올 수 없습니다. {{#view App.RecentNameView}} {{/view}} 나는 {{name}}을 시도했다 :각 반복자가 내용 배열의 값을 출력하지 않습니다.

다음은 관련 코드이 줄을 내부

App.recentUsersArray = Em.ArrayController.create({ 
    content: [], 
    addUser: function(name) { 
     this.pushObject(name); 
    } 
}); 

<ol> 
    {{#each App.recentUsersArray}} 
     <li> 
      {{#view App.RecentNameView}} {{name}} {{/view}} 
      {{#view App.RecentNameDeleteView}}X{{/view}} 
     </li> 
    {{/each}} 
</ol> 

입니다. {{content.name}}하지만 둘 다 작동하지 않습니다. 내가 도대체 ​​뭘 잘못하고있는 겁니까?

답변

관련 문제