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
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.