草庐IT

resolveData

全部标签

javascript - 使用 Karma Jasmine 进行 Angular JS 测试

我有一个像这样的示例路线:angular.module('appRouter',['ui.router']).config(function($stateProvider,$urlRouterProvider){$stateProvider...........state('settings.account',{url:'/account',templateUrl:'templates/account.html',controller:function(resolveData){console.log(resolveData);},resolve:{resolveData:functi