A media query component for vue.js
npm install vue-media-queryA media query component for vue.js


``bash
> yarn add vue-media-query --save
> npm install vue-media-query --save
`
`vue
demo2
{{title}}
`
When you change the orientation of device (phone or browser). You can see the result will be changed.
The value of query can also be a media query string like (max-width: 500px), for more info please see json2mq doc.
This project is inspired by vue-media.
`vue
`
`vue
{{title}}
`
Notice: Because of depends on provide/inject. So the version of Vue should be 2.2.0+.
If you want to support legacy browsers (ie <= 10), please include a window.matchMedia polyfill.
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
vue-media-query © blackcater, Released under the MIT License.
Authored and maintained by blackcater with help from contributors (list).
> www.blackcater.win · GitHub @blackcater · Twitter @tomtang2015