1个回答

1
如果您想防止页面更改,无论哪个先启动都没有关系。
在您的$locationChangeStart中添加event对象:
$scope.$on("$locationChangeStart", function (event) {
    event.preventDefault(); // will prevent the location change
});

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接