I am facing a situation where I have two controllers in separate files, one in file a
and the other in file b
. Whenever the controller in file a
performs an action, I need it to either call a function or trigger the controller in file b
. Is there a way to achieve this? I am using ng-grid and my purpose behind this is that when afterSelectionChange
is triggered in file a
, I want the other grid to update. Unfortunately, I cannot merge the files or use a $watch
function as it significantly slows down the page loading time. I am actively seeking a solution to resolve this issue. The problem can be summarized by referring to the following link:
Ng-Grid flickers grid when updating
This is another perspective on the same problem. Any guidance or assistance on this matter would be highly appreciated!