vue-if-device is a simple vue plugin to show/hide node on mobile/desktop devices.
npm install --save vue-if-device
import device from 'vue-if-device'
Vue.use(device)
- v-if-device.mobile
- v-if-device.desktop.
The plugin provides one function to use:
Function | Arguments | Description |
---|---|---|
$isMobile |
None | Check in relation to the configuartion if the device type is mobile. |
MIT - Created by Aleksey Zimin (@zimingit)