Here's the situation: I have a service that uses LocalStorage to save some Objects when I click some buttons.
These LocalStorage Objects are connected to my Header $scope. The problem is that I only load the header (and its $scope) when I load the first page and then it reamins stucked, 'cause there is no need to load it every time I change the page. But, actually, I need the header to "reload" its $scope when I'm done with saving things in LocalStorage, because in it I have a badge that has to show the updated length of LocalStorage elements (it's a Cart badge, to be clear).
So, is there a way to refresh a specific controller $scope from a Service or from another Controller? Maybe with some $scope.$apply() thing? Or there is a way to bind the LocalStorage element in the Header controller in order to do something when it has changed?
PS: No, I can't move out the Cart badge from the header and Yes, I really have to use LocalStorage (it's a specific request).