vue-device-detector
vue-device-detector is a simple vue plugin to inspect the device type.
- focus on mobile
- vue friendly
- strong typed
Install
npm install vue-device-detector --save |
Quick Start
import device from "vue-device-detector" |
Methods
- this.\$device in Component context.
- Vue.\$device in global.
API list
you can get the following properties under this.\$device
interface IDeviceDetector { |
eg.
on iphoneX
console.log(this.$device.iphoneX) // true |