Cytoscape在Ember中设置节点数据

时间:2017-06-15 09:08:39

标签: jquery ember.js cytoscape

我正在尝试将节点数据添加到设置为组件属性的Cytoscape实例。但是ember抛出错误才能使用Ember.set。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

If you have used Cytoscape instance in template then you have to use Ember.set or set method so that this will be updated in template automatically. If you missed, ember will assert you to use set methods.