If this is your view
<div ng-app='myApp'>
<ng-view/>
</div>
change it to
<div ng-app='myApp' ng-controller='RootController'>
<ng-view/>
</div>
In your RootController
you can add the event handler for $routeChangeStart
. Since your RootController
is created once and remains for the lifetime of the app you can safely subscribe to this event here.