Skip to content

Instantly share code, notes, and snippets.

View Irvandoval's full-sized avatar
🐔
Pecking the life

Irvin Sandoval Irvandoval

🐔
Pecking the life
View GitHub Profile
@mircobabini
mircobabini / Angular.Ionic.HardwareBackButtonManager.js
Last active November 8, 2018 08:44
HardwareBackButtonManager Service for Ionic (Angular.js) provides an interface to easily enable or disable the hardware back button on Android
.service( 'HardwareBackButtonManager', function($ionicPlatform){
this.deregister = undefined;
this.disable = function(){
this.deregister = $ionicPlatform.registerBackButtonAction(function(e){
e.preventDefault();
return false;
}, 101);
}