ui视觉设计 为什么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

->

页面中绑定的指令

路由详细信息

]可以嵌套更深层次的路由uiroute,也就是说,routes可以存在于routes中(大致有两种情况:1横向(2)。纵向)。

(1)嵌套路由

(2)多视图路由

ngroute不能嵌套更深的路由。