How to use View LifeCycle and Events

How do I watch the $ionicView.enter event?

.controller('MainCtrl', function($scope){

 $scope.$on('$ionicView.enter', function(){

  });
});

2 Likes