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之後添加。但它不工作。任何人都可以幫我解決這個問題嗎?先謝謝你。