Skip to content
This repository has been archived by the owner on Sep 9, 2018. It is now read-only.

Error: ng:btstrpd App Already Bootstrapped with this Element #1

Closed
shafaqkazmi opened this issue Dec 6, 2016 · 1 comment
Closed

Comments

@shafaqkazmi
Copy link

shafaqkazmi commented Dec 6, 2016

I am using goldenlayout with angualrJS. I am facing below exception:
Error: ng:btstrpd App Already Bootstrapped with this Element
on execution of this line of code

myGoldenLayout.on('initialised', function () {
 angular.bootstrap(angular.element('#layoutContainer')[0], ['app']);
});

Issue reason is I have already ng-app in my HTML s how can I register golden layout when I already have ng-app?

@shafaqkazmi
Copy link
Author

I solved this problem by using $compile

$compile(html)($scope)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant