shyamseshadri / angularjs-up-and-running

All the source code for the AngularJS Up & Running Book for O'Reilly
MIT License
466 stars 438 forks source link

Ch5 need-for-service #28

Closed dn-la closed 2 years ago

dn-la commented 8 years ago

Hi, I feel strange of this example...

Why those items return to default when I change the tab?

After clicking the add function, the page's new Item add correctly, but if change the tab, and change back, everything gone! :-o!

ng-switch seems to create new scope every time!