diff --git a/README.md b/README.md index 5fa5ca3..a23b18f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Available through npm as `vue-typeahead`. ``` npm install --save vue-typeahead ``` -> Also, you need to install the [`vue-resource`](https://github.com/vuejs/vue-resource) plugin. +> Also, you need to install a HTTP client like [`axios`](https://github.com/mzabriskie/axios). ## Usage If you are using `vue@1.0.22+`, you could use the new [`extends`](http://vuejs.org/api/#extends) property (see below). diff --git a/demo/main.js b/demo/main.js index a6d95d9..537df96 100644 --- a/demo/main.js +++ b/demo/main.js @@ -1,8 +1,8 @@ import Vue from 'vue' -import VueResource from 'vue-resource' +import Axios from 'axios' import Typeahead from './Typeahead.vue' -Vue.use(VueResource) +Vue.prototype.$http = Axios new Vue({ el: 'body', diff --git a/package.json b/package.json index 36da7b2..bf55f51 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,10 @@ }, "dependencies": { "babel-runtime": "^6.0.0", - "vue": "^1.0.21", - "vue-resource": "^1.0.0" + "vue": "^1.0.21" }, "devDependencies": { + "axios": "^0.15.3", "babel-core": "^6.0.0", "babel-loader": "^6.0.0", "babel-plugin-transform-runtime": "^6.0.0", diff --git a/src/main.js b/src/main.js index 8f0dd90..d7f64f3 100644 --- a/src/main.js +++ b/src/main.js @@ -55,7 +55,7 @@ export default { fetch () { if (!this.$http) { - return util.warn('You need to install the `vue-resource` plugin', this) + return util.warn('You need to provide a HTTP client', this) } if (!this.src) {