Skip to content

This vue 3 directive for ionic framework, disables switching the previous route if the user makes a swipe on iOS device

Notifications You must be signed in to change notification settings

Sitronik/v-disable-swipe-back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

v-disable-swipe-back

Getting Started

You can install v-disable-swipe-back using npm.

npm install v-disable-swipe-back

Then in main.ts of your ionic vue project

import App from './App.vue';

import {DisableSwipeBackDirective} from 'v-disable-swipe-back';

const app = createApp(App)
  .directive('disable-swipe-back', DisableSwipeBackDirective);

In vue template include directive in ion-page

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

About

This vue 3 directive for ionic framework, disables switching the previous route if the user makes a swipe on iOS device

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published