可以看到, 这个全局错误处理器正常到工作了....app.error-handler.ts:
import { ErrorHandler } from '@angular/core';
import { ToastrService } from 'ngx-toastr...ErrorHandler, Injectable, Injector, Inject } from '@angular/core';
import { ToastrService, Toast } from 'ngx-toastr...Injectable, Injector, Inject, NgZone } from '@angular/core';
import { ToastrService, Toast } from 'ngx-toastr...301095')
.install();
@NgModule({
imports: [ BrowserModule ],
declarations: [ AppComponent ],
bootstrap