events - Is there any reason to use target="view" or target="controller" in Ember actions? -


i'm playing actions in ember , see people use targets point controllers or views such:

{{action savenote target="view"}

however, see ember supports event bubbling dom, in events work way application controller , router.

is there reason specifying either "view" or "controller"? if understand correctly, view/controller template's action belongs first in line receive event, why specify it?

there's no reason target controller, since it's default target. events not handled controller bubble controller routes.

however, if want view respond action, you'll need target explicitly.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -