ember.js - Execute JQuery code after view has changed -
i'm using foundation tooltips on page query-parameters - control elements displayed, acts filter basically.
when user change filter , new elements displayed tooltip stops work needs reattached new elements - $(document).foundation('tooltip', 'reflow');
wonder correct way execute code after view re-rendered.
for sure must go view layer, can't find appropriate event http://emberjs.com/api/classes/ember.view.html#events
i can think of few ways
export default ember.route.extend({ queryparams: { <name-of-query-param>: { refreshmodel: true } }
or have trigger this.refresh()
on route.
or in controller, observe query param , execute event in loop
Comments
Post a Comment