Lets say I have a controller named "Box" and a controller named "Subbox".
And I've got the following html structure:
- <div id="box">
- <div id="subbox">
- </div>
- </div>
The "box" div is a Box controller and the "subbox" div is a Subbox controller.
What would be the best way for the Subbox controller to communicate with the Box Controller?
For example the Subbox Controller wants do destroy the Box Controller (and itself as a result).
I' can't do something like that:
- $('#box').contorller().destroy()
because the box div is not in my subbox div, so its unreachable.
Does this clears up my problem? Thank you :)
One Addtion:
Lets say the Box Controller should do something when the "abcdef" method on the Subbox controller is called, what would be the best way to do something like that?