0
嘿,请任何人都可以帮助我解决这个问题。 我的看法是谷歌图表在Ember.js中渲染
<div id="sankey_multiple" style="width: 900px; height: 300px;"></div>
我Component.js是
App.sankeyComponent = Ember.Component.extend({
needs: ['sankey'],
//navigation: Ember.computed.alias('controllers.navigation'),
isExpandedBookmarks: false,
didInsertElement: function() {
alert('insert');
}
});
但didInsertElement功能无法正常工作,我没有得到确切位置在哪里我需要添加谷歌图表脚本。
如果我在init函数中添加它,它说容器找不到。所以我认为我们需要在didInsertElement之后添加。但它不工作。任何人都可以帮我解决这个问题吗?先谢谢你。