Hi ,
Suppose I have two controllers :
controller 1 : {
$scope.operation1(){....}
$scope.operation2(){....};
}
controller 2 : {
$scope.operation3(){....}
$scope.operation4(){....};
}
What I want to do is for example :
operation3(){
controller1.operation1(); // invok operation1 which is defined in controller1 from operation3
}
So my question is then is it possible to call a controller function from within another controller without using scope ?
On sollution is to do :
operation3(){
scope.operation1();
}
But I don't like it this way , I want to identiy a fuction using the controller where is is defined (like is java doing : controller1.operation1())
Any Idea ?
Thanks