How to use View LifeCycle and Events


#1

How do I watch the $ionicView.enter event?


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

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

  });
});