Skip to content
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

1.0.0-alpha0 Can't use named service as string for resolver #2588

Closed
joshrickert opened this issue Feb 27, 2016 · 1 comment
Closed

1.0.0-alpha0 Can't use named service as string for resolver #2588

joshrickert opened this issue Feb 27, 2016 · 1 comment

Comments

@joshrickert
Copy link

Trying out the new alpha build. I ran into this issue where I can't specify resolves by service name:

    resolve: {
      'test': 'testResolver',
    }

I get

Error: [ng:areq] Argument 'fn' is not a function, got string

Here is a plunkr. Navigate to home.foo.

@christopherthielen
Copy link
Contributor

Thanks. I'll get this fixed up before 1.0.0-beta. In the meantime, the obvious workaround is:

resolve: {
      'test': testResolver => testResolver,
    }

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

No branches or pull requests

2 participants