Module '“angular2/angular2”' has no exported member 'ExceptionHandler'

后端 未结 2 744
难免孤独
难免孤独 2020-12-22 01:06

I want to customize the default exception handler behavior and to do that I want to override the ExceptionHandler class, but I get the next error when I use the next code

2条回答
  •  离开以前
    2020-12-22 01:24

    Here's a new plunker (modified @alexpods version) that works in beta 11. http://plnkr.co/edit/7VEjaohuse2sLneuCIVC?p=preview

    Basic differences:

    • use of provide instead of bind
    • other System JS paths for import

提交回复
热议问题