#94 Toggle

Ever wanted to toggle a property from your template without creating an action?  Of course you did.

I wrote a tip (#38 Pipe multiple actions) about the awesome ember-composoable-helpers add-on.  Using that same add-on, here is how to toggle a boolean property without writing component/controller code.

Old way:

Better way:

That’s it – no code needed.

Published by

Emad Ibrahim

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