AngularJS : multiple resolves in ui.router

Viewed 287

i'm trying achieve something like this :

 $stateProvider.state('app', {
        url: "/app",
        templateUrl: "assets/views/app.html",
        resolve: {
            authorize: ['authorization',
                function(authorization) {
                    return authorization.authorize();
                }
            ],
            loadSequence: loadSequence('chartjs', 'chart.js', 'chatCtrl')
        },
        abstract: true

resolving "authorize" then "LoadSequence" function, but the error i get is confusing and i can't figure out how to do it properly :

Error: ng:areq Bad Argument Argument 'fn' is not a function, got Object

Best regards.

1 Answers
Related