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