Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229654

Alert or navigate from HttpInterceptor

$
0
0

UPDATE

Just noticed now, this answer works with current Angular and HttpClientModule not HttpModule which you still seems to use.

Therefore only consider the service, subject and subscriber part.

Interceptor with HttpClientModule:

Have a look at an answer I gave on Stackoverflow. It was never marked as correct answer but I could confirm that I use it live in production.

Summarized, use a service, a subject and subscriber the forward the event from your interceptor till your app.component where you could then navigate.


Viewing all articles
Browse latest Browse all 229654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>