进入指定页面监听
$scope.$on('$locationChangeStart', function(event, next, current) {
//expression
});
离开指定页面监听
$scope.$on('$destroy', function() {
//expression
});
$scope.$on('$locationChangeStart', function(event, next, current) {
//expression
});
$scope.$on('$destroy', function() {
//expression
});
本文标题:AngularJs监听进入与离开指定页面
本文链接:https://www.haomeiwen.com/subject/gqndixtx.html
网友评论