Not sure if it can help.
https://docs.google.com/file/d/0B4F6Csor-S1cNThqekp4NUZCSmc/edit page 30,
and the corresponding example http://jsfiddle.net/8M27W/8/


On Mon, May 5, 2014 at 7:08 PM, maxim couton <[email protected]> wrote:

> Hi,
>
>   Thank you for respondig,
>
>     In fact I know that services can be used to share functionality,  but
> I want to implement proxy pattern
> so controller would have a possibility to communicate with another.
>
> ------
> Maxim
>
>
> Le lundi 5 mai 2014 14:34:11 UTC+2, tonypee a écrit :
>
>> controllers should not know about eachother, so they can share
>> functionality via a service, or via events
>>
>>
>> On 5 May 2014 02:54, maxim couton <[email protected]> wrote:
>>
>>> Hi Sander,
>>>     I wants somethig like this;
>>>
>>>    angular.module('mymodule').controller('C1' , function ($scope)){
>>>
>>>
>>>     $scope.operation1(params){
>>>
>>>      // do somthing
>>>
>>>     }
>>>
>>> });
>>>
>>>
>>>
>>> angular.module('mymodule').controller('C2' , function ($scope)){
>>>
>>>
>>>     $scope.call(params){
>>>
>>>      c1.operation1(params); // ??? is it possible and how to make C2
>>> knows C1
>>>
>>>     }
>>>
>>> });
>>>
>>> Le lundi 5 mai 2014 11:38:22 UTC+2, Sander Elias a écrit :
>>>
>>>> Hi Maxim,
>>>>
>>>> This is a textbook example of the use of the "controller as" syntax.
>>>> If you would have provided an plunker, I would have shown you how to do
>>>> it.
>>>>
>>>> Regards
>>>> Sander
>>>>
>>>  --
>>> 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.
>>>
>>
>>
>>
>> --
>> Tony Polinelli
>>
>>   --
> 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.
>



-- 
*Maruf Siddiqui*
Senior Software Engineer
Newscred Inc.
Cell: +8801911037722
Web: www.marufsiddiqui.com
E-mail: [email protected]

-- 
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.

Reply via email to