I've got a service that has a collection of things.  It also has an 
individual thing of the same type.  I'll use a service like this to pass 
around between controllers when I have a collection of things that I'll 
individually want to update.    Imaging a collection of say books.  I can 
display the collection through a table, click on one to edit, update it and 
reload the entire collection..

I've got a plunker here that shows what I'm confused by:

http://plnkr.co/edit/P2smRGGAjEIHbZyAAKKR?p=preview

I don't understand why my controller's scope isn't staying directly tied to 
the service values?  I thought they became associated by reference when I 
set them equal to one another in my controller?  

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.

Reply via email to