MyError.ts 212 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 import { ErrorHandler } from '@angular/core'; export class MyErrorHandler implements ErrorHandler { handleError(error) { console.log(error.stack); (<any> window).courseware.sendErrorLog(error); } }