A Vue 2.x component of easy-to-config page visibility api
$ npm i vue-page-visibility-awesome --save
<VuePageVisibility
@documentInactive="documentInactive"
@documentActive="documentActive" >
</VuePageVisibility>
import VuePageVisibility from 'vue-page-visibility-awesome'
new Vue({
components: {
VuePageVisibility
}
})
Name | Params | Description |
---|---|---|
documentInactive | none | Triggered when user leave the focus page |
documentActive | none | Triggered when user refocus the page |
Feel free to open an issue if you find a bug.
Feature requests and PRs are welcome.
MIT Licensed. See LICENSE.