我正在使用goldenualout與angualrJS。我現在面臨的異常以下:黃金佈局|錯誤:ng:btstrpd應用程序已使用此元素引導
Error: ng:btstrpd App Already Bootstrapped with this Element
這一行代碼的執行
myGoldenLayout.on('initialised', function() {
angular.bootstrap(angular.element('#layoutContainer')[0], ['app']);
});
的原因是在我的HTML,我已經NG-應用程序,所以我怎麼能註冊金佈局時,我已經有ng-app?
https://github.com/codecapers/golden-layout-simple-angular-example/issues/1
你是否設法解決這個問題?我有同樣的難度 –
@JoãoPereira是的,我用不同的方式解決了這個問題。在'registerComponent'中,我用$ scope編譯了html。 ($ scope); $(「
」))($ scope); container.getElement()。html(html);' –https://jsfiddle.net/shafaq_kazmi/9buwcoek/1/ –