ember.js - Ember action target to specific component -


i've upgrade ember version 1.13.5

how can target action specific component, working on previous version , doesn't respond

<a href="#" class="nav-action" {{action 'open' target='view.appoverlay.categorysidemenu'}}><i class="fi-list"></i></a> 

in other part of template have this

{{#overlay-fx viewname="appoverlay" open="opensidemenu"}}     {{#side-menu  open="open" use="toright" targetobject=view.appoverlay viewname="usersidemenu"}}         {{partial "partial/user-side-menu"}}     {{/side-menu}}     {{#side-menu  open="open" use="toleft" targetobject=view.appoverlay viewname="categorysidemenu"}}         {{partial "partial/category-side-menu"}}     {{/side-menu}} {{/overlay-fx}} 

is because of view deprecations, can't event access components view.name ?

i keep getting error, common if action doesn't bubble

uncaught error: nothing handled action 'open'. if did handle action, error can caused returning true action handler in controller, causing action bubble. 

well after several try errors, solution remove "'s target parameter on action

it end

<a href="#" class="nav-action" {{action 'open' target=view.appoverlay.categorysidemenu}}><i class="fi-list"></i></a> 

seems silly, not documented anywhere, maybe new changes propagate views receives functions, lost hours debugging this.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -