[Solved] Angular Service duplicating data


#1

I have 2 views, one for all my stores and another for the store details. Both are reading data from a service. My problem is that when I click in one store and go back, all the stores are appending again.

Here is a plnkr

Thanks!

Solution: http://plnkr.co/edit/J6wnDEYDLPT5tsG1VYey?p=preview