MyError.ts 220 Bytes
Newer Older
唐鑫's avatar
唐鑫 committed
1 2 3 4 5 6 7 8

import { ErrorHandler } from '@angular/core';

export class MyErrorHandler implements ErrorHandler {
  handleError(error) { 
    console.log(error.stack);
    (<any> window).courseware.sendErrorLog(error);
  }
范雪寒's avatar
范雪寒 committed
9
}