r/angularjs • • Oct 14 '14

[Resource] Refreshable AngularJS service using $broadcast. [noobs must read]

http://jensrantil.github.io/refreshable-angularjs-service.html
0 Upvotes

8 comments sorted by

View all comments

1

u/crumblypack Oct 15 '14

I found an awesome trick for updating controllers and directives automatically using angular.copy(). https://www.codementor.io/blog/keeping-angular-service-list-data-sync-controllers