How to get object at index in Array Controller within view?

♀尐吖头ヾ 提交于 2019-12-24 09:59:40

问题


I have a view that has an Array Controller as a property. I would like to get an element at an index within the view.

view: {{ App.array.firstObject }} works but: {{ App.array.objectAt(1) }} doesn't work. I can't iterate in my case.

So is there a way to do that?


回答1:


Does {{App.array.[1]}} work for you ?



来源:https://stackoverflow.com/questions/11724272/how-to-get-object-at-index-in-array-controller-within-view

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!