Is there an after view change hook (much like didInsertElement)?

后端 未结 5 662
旧巷少年郎
旧巷少年郎 2021-02-06 08:07

Using the didInsertElement hook, I\'m able to do some jQuery plugin initialization that is needed. However, if a property changes, Ember re-renders the view, but do

5条回答
  •  孤独总比滥情好
    2021-02-06 08:21

    Sorry some [...] moderator deleted my original answer even though it was upvoted... shm

    Original answer: Take a look at this article by Yehuda Katz http://yehudakatz.com/2011/06/11/using-sproutcore-2-0-with-jquery-ui/. It's old and some of the code needs modification to work with Ember's current api, but it's a good example on how to integrate outside frameworks and plugins with Ember.

提交回复
热议问题