最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Manually trigger property change in ember.js - Stack Overflow

programmeradmin4浏览0评论

I have a ponent with a property 'viewBox' that stores a POJO, with an observer on this property. I want to be able to modify the properties of this viewBox without using set and then manually trigger a change on the viewBox. Is this possible in ember.js ?

I have a ponent with a property 'viewBox' that stores a POJO, with an observer on this property. I want to be able to modify the properties of this viewBox without using set and then manually trigger a change on the viewBox. Is this possible in ember.js ?

Share Improve this question asked Apr 6, 2015 at 17:14 J. BarcaJ. Barca 5556 silver badges19 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 16

You can use the notifyPropertyChange method on Ember.Observable to let Ember know a property has been changed through manual assignment.

发布评论

评论列表(0)

  1. 暂无评论