怎么可能URL从路由参数中获取哈希片段$routeChangeStart.
$scope.$on('$routeChangeStart', function (event, next, current) {
// trying to get the url hash fragment from <next> param here
// e.g. to_url_function(next) -> '/my_path/1'
});
Run Code Online (Sandbox Code Playgroud)
接收URL hash片段很容易使用,$locationChangeStart但这对我来说不是一个选择.