How to use $ionicView with ionic nightly

I just upgraded to ionic nightly.
When I inject $ionicView in a controller, it complains “unknown provider: $ionicViewProvider”.
Any hints?

I’m using ionicView like this:

$scope.$on('$ionicView.beforeEnter', function() {
    analytics.trackView('Login Page');
});
3 Likes

OK, I see. Thank you :slight_smile:

1 Like

Thanks @brandyshea!

You can find more about the view’s lifecycle and events here:
http://ionicframework.com/docs/nightly/api/directive/ionView/

1 Like