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

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -