Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
angularjs路由中的解析器_Angularjs_Routes - Fatal编程技术网

angularjs路由中的解析器

angularjs路由中的解析器,angularjs,routes,Angularjs,Routes,angularjs中路由解析器的用途是什么?如何在路由更改之前使用解析器检查用户是否已登录或未使用$http Ajax请求?根据路由服务的官方文档 $route is used for deep-linking URLs to controllers and views (HTML partials). It watches $location.url() and tries to map the path to an existing route definition. 至于身份验证,这取

angularjs中路由解析器的用途是什么?如何在路由更改之前使用解析器检查用户是否已登录或未使用$http Ajax请求?

根据路由服务的官方文档

$route is used for deep-linking URLs to controllers and views (HTML partials). 
It watches $location.url() and tries to map the path to an existing route definition.
至于身份验证,这取决于如果用户已经通过身份验证,您可以通过哪些服务器路由通知您。查看此问题了解更多详细信息