Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : How to remove controllers without deleting the parent Element?

$
0
0
You can remove the element from the DOM, which will also destroy the Control instance. Or, if you want to keep the element in the DOM, you can call destroy on the Control instance to remove the bindings.
thats what i wrote and thats my problem. i dont want to remove the parent element to destroy a controller. because thats what i need to append another controller
.
So what exactly are you trying to do. What do you mean you want to "exchange" widgets?
i want to load different controllers in the same element. it´s a regular use case in a one-page app i think



Viewing all articles
Browse latest Browse all 3491

Trending Articles