mercredi 10 octobre 2018

Include element if any items in array have property x in Handlebars

Working with ember and handlebars, if I want to conditionally add an element to a template I can do


  <myElement>


But say I have an array, and only want to include myElement if at least one of the objects in the array has some property true. How would I do this?




Aucun commentaire:

Enregistrer un commentaire