#69 {{each}} with tagName

Guest Tip by Devin Weaver
I just learned that the {{#each}} can take tagName and class attributes!
When before you had to wrap your {{each}}:

Instead you can do this with:

This might prove useful with the tag-less component feature in a previous tip.

Credits & Links


Also published on Medium.

Published by

Emad Ibrahim

Author of asp .net MVC & TDD, entrepreneur, passionate technologist, programmer and productivity nut. more at http://t.co/oSJXPvzu

  • Hi. Be careful what version of EmberJS you’re working with when using this tip. As of EmberJS it seems it’s not working anymore. That’s too bad :'(