Answer the question
In order to leave comments, you need to log in
How to remove a module after registering it through bootstrap?
Loading module angular.bootstrap(angular.element('#foo'), ['bar']);
After certain actions, I need to untie it from Angular in order to load it again later.
How can I do that ?
Answer the question
In order to leave comments, you need to log in
Or how can you activate the controller when there is no layout yet?
I will describe the problem in more detail, maybe there are other solutions:
There are 2 divs on the page that are not nested, something like this:
<div id="foo"></div>
<div id="bar"></div>
angular.bootstrap(angular.element('#foo'), ['bar']);
<div id="bar">
html and the layout of another angular module, I can also activate itangular.bootstrap(angular.element('#bar'), ['baz']);
but if you change it again in the first module and send ajax to the server to redraw <div id="bar">
it, then you cannot activate the module again, since it has already been activated. <div id="foo"><div id="bar">
of blocks. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question