Saturday, 15 June 2013

javascript - Handlebars array length -1 -



javascript - Handlebars array length -1 -

is there way index of array within handlebar template , want lastly value in array , phone call . property on it

{{currentrevision.computedroutingnodes.length-1.numberofreviewdays}}

computedroutingnodes array of objects

i know can index like

{{currentrevision.computedroutingnodes.1.numberofreviewdays}}

but want lastly value dynamically

{{currentrevision.computedroutingnodes.lastobject.numberofreviewdays}} work if you're using ember.js.

javascript arrays ember.js handlebars.js

No comments:

Post a Comment