Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Block app without internet connection

$
0
0

@Freier wrote:

Hello all,

I'm very new in Ionic and Javascript and I need a little bit help.
I use a Ionic SideMenu Template with different HTTP-Requests. I would like block the app or only the http-request and popup an alert.

I use this script enter link description here

When I connect or disable the internet-connection I see the network-state change the status.
But how can I implement this script??? When I inser an if($scope.isOnline) { }, the alertbox open, but in the background the http-request start

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



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