摘要:
来源:http://docs.angularjs.org/api/ngRoute.$routeProvider有省略。$routeProviderngRoute模块中的服务描述用于配置路由示例配置与ngRoute的使用参见$route依赖需要安装ngRoute模块方法otherwise(params)设置用于路由改变时,与任何其他路由定义无法匹配时使用的路由定义。参数参数名类型详细说明paramsObject将赋值给$route.current的映射信息返回[Object]自身when(path, route)为$route服务添加新的路由定义参数参数名类型详细说明pathstring(匹配$ 阅读全文