Router 路由

angular 路由配置

代码演示

example/js/routerConfig.js

API

属性 说明 类型 默认值 必填
title 路由对应页面的标题 String - YES
state 路由状态配置名称 String - YES
url 页面对应的链接 String - YES
controller 控制器名称 String - YES
controllerAs 控制器别名 String - NO
templateUrl 页面模板 URL 路径 String - NO
template 页面模板内容 String - NO
params 在进行页面跳转时要传的参数的值,JSON 结构 Object / JSON - NO
routers 当面页面的子页面路由配置,结构同上 Object / Array - NO