Skip to content

resolve fails with service names #574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
elmerbulthuis opened this issue Nov 12, 2013 · 1 comment
Closed

resolve fails with service names #574

elmerbulthuis opened this issue Nov 12, 2013 · 1 comment

Comments

@elmerbulthuis
Copy link

see http://plnkr.co/HNHpjy

this works:

...
.config(function($stateProvider){
  $stateProvider.state('test', {
    resolve: {
      "one": function($q){
        return $q.when('uno');
      }
      , "two": function($q){
        return $q.when('deux');
      }
    }
  });
})

this does not:

...
.config(function($stateProvider){
  $stateProvider.state('test', {
    resolve: {
      "one": function($q){
        return $q.when('uno');
      }
      , "two": "two_resolver"
    }
  });
})
.service('two_resolver', function($q){
  return $q.when('deux');
})

is seems that resolving a service by its name does not work.

@elmerbulthuis
Copy link
Author

never mind! is duplicate for #449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant