问题:
I'm planning to use AngularJS in my big applications. 我打算在我的大型应用程序中使用AngularJS。 So I'm in the process to find out the right modules to use. 所以我正在寻找合适的模块。
What is the difference between ngRoute (angular-route.js) and ui-router (angular-ui-router.js) modules? ngRoute(angular-route.js)和ui-router(angular-ui-router.js)模块有什么区别 ?
In many articles when ngRoute is used, route is configured with $routeProvider . 在使用ngRoute的许多文章中,使用$ routeProvider配置路由。 However, when used with ui-router , route is configured with $stateProvider and $urlRouterProvider . 但是,当与ui-router一起使用时 ,路由配置为$ stateProvider和$ urlRouterProvider 。
Which module should I use for better manageability and extensibility? 我应该使用哪个模块来提高可管理性和可扩展性?
解决方案:
参考一: https://stackoom.com/question/1QDEx/angular-route和angular-ui-router之间有什么区别参考二: https://oldbug.net/q/1QDEx/What-is-the-difference-between-angular-route-and-angular-ui-router
来源:oschina
链接:https://my.oschina.net/u/4432649/blog/4313054