Angular 2 doesn't update view after exception is thrown

后端 未结 2 1062
遇见更好的自我
遇见更好的自我 2020-12-16 17:49

When an exception is caught by Angular 2\'s exception handler, the UI no longer \'updates\'.

I have a very simple example here:

2条回答
  •  孤街浪徒
    2020-12-16 18:13

    Don't rely on code execution after an unhandled Exception happened. You have to handle the exception in the place where you expect it to happen.

    Error handling: http://www.javascriptkit.com/javatutors/trycatch.shtml

提交回复
热议问题