In the latest documentation of Ember it’s sayed that the action helper will trigger a method
on the current action.
{{#if isExpanded}}
<div class='body'>{{body}}</div>
<button {{action "draw"}}>Draw</button>
{{else}}
<button {{action "expand"}}>Show More...</button>
{{/if}}
How to tiggrer an action on the associated view ? I need to do some action on the view like
drawing on the canvas. But, it can’t figure out how to get the reference of the view associated to current controller.
{{action draw target="view"}}should work.