MyError.ts 212 Bytes
Newer Older
范雪寒's avatar
范雪寒 committed
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);
  }
}