I have two controllers which are nested:
Controller A {
$scope.submitForm = submitForm;
}
And
Controller B {
function submitForm() {
//Will this method be invoked? When there is a submit event fired in controller A?
}
}
Note: Controller A and B are nested, i.e B is inside A.
Try using this: in controller b
in the controller calling the function
this is probably the easiest way to communicate in between controllers