🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue-prevent-unload

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-prevent-unload

Vue component that conditionaly prevents page leave/reload

0.2.3
latest
Source
npm
Version published
Weekly downloads
436
9.82%
Maintainers
1
Weekly downloads
 
Created
Source

🚪 Vue prevent unload

Vue component that conditionaly prevents page leave/reload

:art: Playground on the Web

In TODO

:cd: Installation

This version requires Vue 2.X.

npm install vue-prevent-unload

:rocket: Usage

<template>
  <PreventUnload :when="hasChanges"/>
</template>
<script>
  import PreventUnload from 'vue-prevent-unload';
  export default {
    data() {
      return {
        hasChanges: true,
      }
    },
    components: {
      PreventUnload,
    }
  }
</script>

:syringe: Tests

In TODO

:anchor: Semantic Versioning Policy

This plugin follows semantic versioning.

:newspaper: Changelog

We're using GitHub Releases.

:beers: Contributing

We're more than happy to see potential contributions, so don't hesitate. If you have any suggestions, ideas or problems feel free to add new issue, but first please make sure your question does not repeat previous ones.

Notice: Don't try to edit files from dist as it compiled from src by babel and shouldn't be changed manually.

:lock: License

See the LICENSE file for license rights and limitations (MIT).

Keywords

vue

FAQs

Package last updated on 07 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts