MDSLKTR / pouch-vue

Pouchdb bindings for Vue.js
MIT License
90 stars 17 forks source link

Typo in Readme #36

Closed spinalwiz closed 5 years ago

spinalwiz commented 5 years ago

Are these typos in the readme or am I just misunderstanding?

Then, plug VuePouch into Vue: import PouchVue from 'pouchVue';

Vue.use(pouchVue, {
      pouch: PouchDB,    // optional if `PouchDB` is available on the global object
      defaultDB: 'remoteDbName',  // this is used as a default connect/disconnect database
      optionDB: {}, // this is used to include a custom fetch() method (see TypeScript example)
      debug: '*' // optional - See `https://pouchdb.com/api.html#debug_mode` for valid settings (will be a separate Plugin in PouchDB 7.0)
    });

I'm guessing import PouchVue from 'pouchVue'; should be part of the code block.

Although shouldn't it be import PouchVue from 'pouch-vue';? And Vue.use(PouchVue, with a capital P?

Apologies if I'm just misunderstanding

MDSLKTR commented 5 years ago

Hey, you're right the example wasn't complete. Thanks for reporting. I fixed the README.md