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
You do not have to use any library for this, you can handle this by this few lines of code.
Add this below code into your comman error handler service file file name errors-handlers-services.ts
if (string.includes(<>)) {
window.location.reload();
}
This code block is working for me. maybe this code snippet helps you!!