Hello Sasikumar.V

Performance is the same. However, it's a poor choice for those concerned 
with maintainability. As application grows, that can lead to name clashes 
and lost focus on responsibility over data and/or functions. Usage 
$rootScope will never figure in a best practices article and could even go 
away as angular evolves (>=2.0...) .

Em terça-feira, 30 de dezembro de 2014 12h20min49s UTC-2, Sasikumar 
Veeraiah escreveu:
>
> Hi André Werlang,
> I need to know whether any issues will happen (like performance issue) or 
> not while using $rootScope.
>
> Thanks & Regards,
> Sasikumar.V
>
> On Tue, Dec 30, 2014 at 7:25 PM, André Werlang <[email protected] 
> <javascript:>> wrote:
>
>> You're better at sharing data with a service. This way is more explicit 
>> which component maintains data. As best practices goes, avoid sharing data 
>> on scope, either by $rootScope or child/inherited scopes/controllers.
>>
>> Em terça-feira, 30 de dezembro de 2014 11h17min56s UTC-2, Sasikumar 
>> Veeraiah escreveu:
>>
>>> *Hi all,*
>>>
>>> Which one is the better way to pass values from one controller to 
>>> another controller? either using $rootScope or by setting and getting 
>>> values using service?
>>> Some one suggest me the good approach.
>>>
>>> *Thanks & Regards,*
>>> *Sasikumar.V*
>>>  
>>  -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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