1.0.5 • Published 1 year ago
@j2only/ionic-disable-swipe-back v1.0.5
@j2only/ionic-disable-swipe-back
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
1.0.5
1 year ago