jeudi 30 avril 2015

In an Ember Array, how do i access object by index value? Ember Js

For an ember array you can simply do this:

array.get('firstObject');

to get the first object in array.

or this:

array.get('lastObject');

to get last object in array.

How do I get something by its index? similar to how it works in an ordinary javascript array:

array[index];




Aucun commentaire:

Enregistrer un commentaire