My template contains an expression that produces an exception:
<h1>Foo: {{model.somebodyForgotToInitializeMe.foo}}</h1>
An error the model produces the following output on the console:
Uncaught EXCEPTION: TypeError: Cannot read property 'foo' of null in [
{{model.somebodyForgotToInitializeMe.foo}}
in SomeView@21:73]
That's not surprising. What is surprising is that this error brings down the entire Angular 2 application. Nothing else in the app responds after this has happened.
Is there a global exception handler I need to installed to prevent an error in a single binding expression killing my entire app?
This is a large medical application worked on by alot of developers. An exception in a UI component shouldn't take down the entire application.