ui視覺(jué)設(shè)計(jì) 為什么Ionic選用了ui-router而非ngRoute?
為什么Ionic選用了ui-router而非ngRoute?Ngroute與UI route比較:$when->$state routing state configuration$routepa
為什么Ionic選用了ui-router而非ngRoute?
Ngroute與UI route比較:
$when->$state routing state configuration
$routeparams->$stateparams configuration with parameters
$routeprovider->$stateprovider dependency injection module
->
頁(yè)面中綁定的指令
路由詳細(xì)信息
]可以嵌套更深層次的路由uiroute,也就是說(shuō),routes可以存在于routes中(大致有兩種情況:1橫向(2)??v向)。
(1)嵌套路由
(2)多視圖路由
ngroute不能嵌套更深的路由。