Return to site

GITHUB: error interceptor

· github,angular

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.

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!

All Posts
×

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!

OK