><a href="#C9_L19" id=C9_L19></a><a href="#C9_L20" id=C9_L20></a><a href="#C9_L21" id=C9_L21></a><a href="#C9_L22" id=C9_L22></a></span></code></pre></div>
<p>Analogous to the <code>loading</code> event, you could manage the <code>error</code> event
at the application level to avoid writing the same code for multiple routes.</p>
<p>In case we want to run some custom logic and have the default behavior of rendering the error template,
we can handle the <code>error</code> event and let it bubble by returning 