Is it possible to create a directive that binds a global exception handler, that, say, logs to console and shows a <div> in the ui?
I'd like to use it like this:
<div with-global-exception-handler>
...
</div>
Then whatever happens within that div that throws an exception would be covered by a that exception handler?