angular.js - The difference between angularjs ng-view and ui-view?
漂亮男人2017-05-15 16:52:20
0
3
736
ng-view is the routing of angularjs, I know this.
As for ui-view, it is said on the Internet that it is nested routing, but I don’t understand it.
And are they all in the js file angular-route?
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
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.
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
Ui-view is a third-party package and belongs to the angular-ui family
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.