I am using Angular 4 for my application development. I need to check If the network connection is available for its have any Connection issue using Angular for. Is it possib
if(navigator.onLine){ alert("You are Online") } else { alert("You are Offline") }
navigator.onLine --> returns true or false