·
I am on a task to catch backend error on form submit in Angular, and I wanted to do a mini-POC on my own to check the suitability of such a solution.
So here it is: https://github.com/vinny59200/VVERRORINTERCEPTOR
A web page with a text input for a movie title:
- a 'ok' button submits the title to a valid url and returns movie informations
- a 'ko' button submits the title to a bad url and returns an error handled by the interceptor in console
Have a good one!