you have no internet connection angular code example
Example: you have no internet connection angular
if(navigator.onLine){
alert("You are Online")
}
else {
alert("You are Offline")
}
if(navigator.onLine){
alert("You are Online")
}
else {
alert("You are Offline")
}