I would like to destroy or switch a Controller after pushing a button.
This should be made without a page refresh - just a reload of the content.

I searched the forum and the web but found anything useful.

In detail:
I got the two controllers 'Search1.js' and 'Search2.js'. Search1 is initialized at the start of the application.
After pushing the button, I would like to change from Controller Search1 to Controller Search2.

Is it even possible to change the active Controller or is there another (much better) way to realize what I need (without tabs)?
In my opinion it isn't the right way how to solve this task but it's the only thing I could imagine.

I hope you can help me - and thanks in advance.

Greetings
Zeitwaechter

22 May 2012, 6:02 AM

LesJ

See this thread. There was a solution provided that you may find interesting.

22 May 2012, 6:57 AM

Zeitwaechter

Hi,

even though I have to admit that I'm still tryin' to get mankz or mitchellsimoens solution to work in my application it seems that those solutions could do, what I want them to do.