Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49217

Handle hardware back button

$
0
0

@fabiobalsamo wrote:

Hi, how handle hardware back button in one page app? I read about this
$ionicPlatform.registerBackButtonAction(function(){
if($ionicHistory.currentStateName === 'someStateName'){
event.preventDefault();
}else{
$ionicHistory.goBack();
}
}, 100);

but i have a file browser app that have just one page with a list of files?
How can i disable hardware back button at first path of files?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49217

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>