详解AngularJS 路由 resolve用法 ng-route模块中的when()和ui-route的state()都提供了resolve属性。为什么需要使用resolve?当路由切 angularjs使用resolve