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
Post a Comment