Skip to content

Conversation

@Tallyb
Copy link
Contributor

@Tallyb Tallyb commented Dec 20, 2016

Similar with the Hello World example, except the client is a provider.
This is a typical scenario that some configuration, e.g. base url, is managed in another provider, and you will need to use it via DI to configure your client.


@NgModule({
providers: [Client, {
provide: ApolloModule,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this provide 'Apollo' instead of 'ApolloModule'?

@tomermoshe
Copy link

This PR was made a very long time ago. Can you please explain briefly what was the example for.

@Tallyb
Copy link
Contributor Author

Tallyb commented Jun 26, 2017 via email

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

Successfully merging this pull request may close these issues.

4 participants