Last active
December 23, 2018 02:03
-
-
Save robertohuertasm/82948adfb2ff9edb99daa752dfed7f71 to your computer and use it in GitHub Desktop.
never miss error ionic
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
class CustomErrorHandler extends ErrorHandler { | |
handleError(error: Error) { | |
// do something with the exception | |
} | |
} | |
@NgModule({ | |
providers: [{ provide: ErrorHandler, useClass: CustomErrorHandler }], | |
}) | |
class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment