I have a view that is linked up to a controller:
<div ng-controller="myController"> ... </div> the controller:
app.controller('myController', ['$scope', // Some code here that calls a webservice and updates the scope ]); When the controller initially runs, it calls a webservice, returns the data and binds it to the scope. It works great. However when I navigate to another view/state using ui-sref or $state.go() and I navigate back to this view, the controller doesn't call the webservice again.
Is there a way to make sure that every time the state lands on this view and controller, the controller is re-run so to speak?