问题
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