Skip to content

Instantly share code, notes, and snippets.

@MichaelMarner
Created February 26, 2018 10:15
Show Gist options
  • Save MichaelMarner/33986342f72d87f2fc85177033bfe995 to your computer and use it in GitHub Desktop.
Save MichaelMarner/33986342f72d87f2fc85177033bfe995 to your computer and use it in GitHub Desktop.
const ERROR_HANDLER = environment.production ? MyErrorHandler : IonicErrorHandler;
@NgModule({
// the rest of your module bootstrapping
providers: [
{ provide: ErrorHandler, useClass: ERROR_HANDLER }
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment