Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Nov 1, 2016
1 parent b4392b6 commit 9a330b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Integrates [apollo](http://www.apollostack.com/) in your vue components with dec

```javascript
import Vue from 'vue';
import ApolloClient, { createNetworkInterface, addTypename } from 'apollo-client';
import ApolloClient, { createNetworkInterface } from 'apollo-client';
import VueApollo from 'vue-apollo';

// Create the apollo client
Expand All @@ -24,7 +24,6 @@ const apolloClient = new ApolloClient({
uri: 'http://localhost:8080/graphql',
transportBatching: true,
}),
queryTransformer: addTypename,
});

// Install the vue plugin
Expand Down Expand Up @@ -68,7 +67,7 @@ apollo: {
},
```

Don't forget to initialize your property in your vue component:
You can initialize the property in your vue component's `data` hook:

```javascript
data () {
Expand Down Expand Up @@ -173,7 +172,7 @@ apollo: {
},
```

Don't forget to initialize your property in your vue component:
Again, you can initialize your property in your vue component:

```javascript
data () {
Expand Down

0 comments on commit 9a330b7

Please sign in to comment.