no tienes conexión a Internet angular

if(navigator.onLine){
  alert("You are Online")
 }
  else {
   alert("You are Offline")
    }
Srinivas Vadige