How to use $ionicView with ionic nightly


#1

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


#2

I’m using ionicView like this:

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

#3

OK, I see. Thank you :slight_smile:


#4

Thanks @brandyshea!

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