Home  >  Q&A  >  body text

angular.js - angularjs ng-view和ui-view的区别?

ng-view是angularjs的路由,这个我知道。
至于ui-view,网上说是嵌套路由,看了不太懂。
还有他们都是在angular-route这个js文件里的吗?

漂亮男人漂亮男人2713 days ago695

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-05-15 16:54:20

    augular itself has a router management module, but it is not powerful enough and is troublesome. ui-router is a module under angular-ui angular-ui (https://github.com/angular-ui). Simply put, it is the wheel of angular directive Collection, easy to use

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-15 16:54:20

    Ui-view is a third-party package and belongs to the angular-ui family

    reply
    0
  • 怪我咯

    怪我咯2017-05-15 16:54:20

    angular has specially separated a routing module, angular-ui-router, which is specialized in routing. Although the routing module that comes with angular can still implement routing, the official recommendation is to use the separated one for routing.

    reply
    0
  • Cancelreply