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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -