You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should an action inside of an each with an itemController make the item controller it's default target?
Currently it seems the only way to target the item controller is to be explicit:
{{#each thing in controller}}
<button {{action select target=thing}}>select</button>
{{/each}}
Using target=this inside of an {{each controller}} doesn't work, neither does leaving out the target altogether - they all go to the page's controller by default.
I believe that Tom's commit at ae9d164 was intended to address this by moving the itemController into #each, which is able to control the target in child contexts.
Should an
action
inside of aneach
with anitemController
make the item controller it's default target?Currently it seems the only way to target the item controller is to be explicit:
Using
target=this
inside of an{{each controller}}
doesn't work, neither does leaving out the target altogether - they all go to the page's controller by default.Here's a fiddle to illustrate this: http://jsfiddle.net/rlivsey/2NDRK/
The text was updated successfully, but these errors were encountered: