Hi Friends,
Please help me out by answering the following problem, That would be very helpful for me.
Currently I am working on a big project, there are lots of controllers, and they are nicely connected to their model changes and view, as it should be, but the problem is that, whenever I need to communicate between two controllers, there are some generic ways for this by javascriptmvc framework, those are.
1 - triggering from one controller and listening to another one.
2 - Extending the controllers according to their functionality and uses.
3 - Directly getting the references of any controller using .data() or .controller() when any method of particular controller needed to call.
So, My first Question is that, which way is more efficient for handling a large project ?
Another one is, Somehow I thought to create my own module or controller for stabilizing the connection between controllers, that should be generic, So I added a method in main controller which works as the specified way 2, but when I am calling the parent controllers function from child one, then it holds the child's context while parent call but I need the parent context while its function call.
So, How to achieve the second functionality ?
Please answer these as early possible.
Thank you so much. :)