Created
November 16, 2018 18:37
-
-
Save a-patel/b1627b2ed67c8d114bc05def060e9452 to your computer and use it in GitHub Desktop.
Global Error Handling in Angular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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