0

When my application url load in browser, if internet is unavailable i need alert message or any error prompt show to user that 'Internet unavailable'.If internet is available it run the application. Please anyone help me to fix this issue

2

1 Answer 1

1

I suggest you to write interceptor, and check it there

if (!window.navigator.onLine) {
 // youre code
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.