Using handlebars-1.1.2 and old emberjs 1.5.1. I've code:
{{#each queue in appController.queues_services_array}}
<label for="{{GetObjectId queue}}">{{queue.title}}</label></div>
{{/each}}
and helper:
Handlebars.registerHelper('GetObjectId', function(value) {
return value.id;
});
The problem is that data given to helper is just string "queue", not an object. I wonder how can I pass object "queue" to helper.
Aucun commentaire:
Enregistrer un commentaire