I\'m trying to see if something is possible in angular.
I want to allow for a provider in app.module.ts based on a condition from a service.
So for example: