Vue PWA Install
This library allows you to listen for beforeinstallprompt
event painlessly in your Vue.js application. It comes handy when you're building offline-first Progressive Web Apps and want to display a custom "Add to home screen" banner on you web app. Adds canInstall
event via a global mixin. Exposes useful TypeScript definitions.
Installation
$ npm install vue-pwa-install
Usage
As a plugin
VuePwaInstallMixin
will be injected into every component.
; Vue;
As a mixin
You can inject VuePwaInstallMixin
manually directly into your components.
; mixins: VuePwaInstallMixin;
Inside a component
Add to home screen