I am implementing a Rollbar in my angular 8 project.
providers: [
{ provide: ErrorHandler, useClass: RollbarErrorHandler },
{ provide: RollbarService, useFactory: rollbarFactory }
],
I want the angular ErrorHandler class to be used in the Local environment. But I want the rollbar to be used in the product environment.