Skip to content

Instantly share code, notes, and snippets.

@a-patel
Created November 16, 2018 18:37
Show Gist options
  • Save a-patel/b1627b2ed67c8d114bc05def060e9452 to your computer and use it in GitHub Desktop.
Save a-patel/b1627b2ed67c8d114bc05def060e9452 to your computer and use it in GitHub Desktop.
Global Error Handling in Angular
import { ErrorHandler, NgModule } from "@angular/core";
import { CustomErrorHandler } from "./error.handler";
@NgModule({
providers: [
{ provide: ErrorHandler, useClass: CustomErrorHandler }
]
})
export class HandlersModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment