1

I have two questions.

  1. angular httpclient get method returns unknown error when I have lost my internet connection.
  2. another question is when I tried navigator.onLine its always returning true. after that I used addeventlistener('online'), addeventlistener('offline') as well as hostlistener also these are not getting trigger hen I lost and found an internet connection.

If I am missing something please let me know

2
  • Have you tried using observable to handle this, as suggested here: stackoverflow.com/a/57069101/2012333 Commented Oct 4, 2019 at 5:13
  • Yes I have tried this. But it did not work for me. Commented Oct 4, 2019 at 9:04

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.