Skip to content

Commit

Permalink
Make it up-to-date with 0.9.0-rc.1 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed Jan 3, 2017
1 parent c1259cd commit e3a117c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/source/initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ import { AppComponent } from './app.component';
// Create the client as outlined above
const client = new ApolloClient();

export function provideClient(): ApolloClient {
return client;
}

@NgModule({
imports: [
BrowserModule,
ApolloModule.withClient(client)
ApolloModule.withClient(provideClient)
],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
Expand Down

0 comments on commit e3a117c

Please sign in to comment.