1.0.5 • Published 1 year ago

@j2only/ionic-disable-swipe-back v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@j2only/ionic-disable-swipe-back

npm publish npm npm bundle size (scoped) CodeFactor Grade TypeScript contributions welcome GitHub

Installation

Install this component via package manager:

yarn add @j2only/ionic-disable-swipe-back

Usage

Import the component in your app. Example of the main.ts file in your ionic vue project:

<script setup lang="ts">
import App from "./App.vue"

import { DisableSwipeBackDirective } from "@j2only/ionic-disable-swipe-back"

const app = createApp(App)
    .directive("disable-swipe-back", DisableSwipeBackDirective)
app.mount("#app")
</script>

In vue template include directive in ion-page

<template>
    <ion-page v-disable-swipe-back>
        ...
    </ion-page>
</template>

Licensing

MIT License Forked from @Sitronik/v-disable-swipe-back, Sitronik, MIT License