Exercise
- Open exercise on codesandbox.
This exercise builds on the previous exercise using the
catchError()operator. Note that I've added a newmessageconstant variable that is a reference to anHTMLDivElementthat displays an error message. By default, the div element is hidden using thehiddenclass on the element. In thecatchError()method I have removed thehiddenclass. - Your task is to use the
finalize()operator to add thehiddenclass back to the div element after 5000 milliseconds.