我正在使用带有 angualrJS 的 Goldenlayout。我面临以下异常:
Error: ng:btstrpd App Already Bootstrapped with this Element
在执行这行代码时
myGoldenLayout.on('initialised', function () {
angular.bootstrap(angular.element('#layoutContainer')[0], ['app']);
});
原因是,我的 HTML 中已经有 ng-app,那么当我已经有 ng-app 时,如何注册黄金布局?
https://github.com/codecapers/golden-layout-simple-angular-example/issues/1