Created
December 23, 2018 02:03
-
-
Save robertohuertasm/24bf4bdcbfd52e5c9a6e0d0bb6d21e2d 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 implements IonicErrorHandler { | |
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