Relative Content

Tag Archive for angulartypescriptprimenginterceptorangular18

Show message from interceptor function Angular 18

Before upgrading to Angular 18 and a function based interceptor, I was using the traditional class based interceptor and was able to throw up alerts on the screen when an error occurred using a simple AlertService. Now, I’ve upgraded to Angular 18 and the function based interceptor, and I’ve also moved to PrimeNG and am using the built in [message service]https://primeng.org/messages#service they provide for alerting.