angularjs路由中的解析器
angularjs中路由解析器的用途是什么?如何在路由更改之前使用解析器检查用户是否已登录或未使用$http Ajax请求?根据路由服务的官方文档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. 至于身份验证,这取
$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.
至于身份验证,这取决于如果用户已经通过身份验证,您可以通过哪些服务器路由通知您。查看此问题了解更多详细信息