進(jìn)入指定頁面監(jiān)聽
$scope.$on('$locationChangeStart', function(event, next, current) {
//expression
});
離開指定頁面監(jiān)聽
$scope.$on('$destroy', function() {
//expression
});
$scope.$on('$locationChangeStart', function(event, next, current) {
//expression
});
$scope.$on('$destroy', function() {
//expression
});