Thanks Sander, if I don't choose the injector approach, how would I go about customizing/configuring GridService (final service) to either be RESTCommunicationService or WSCommunicationService?
Can you point me in the right direction. On Monday, October 2, 2017 at 8:25:17 PM UTC-7, Sander Elias wrote: > > Hi Reza, > > Of course you can write a service that returns the right one, based on a > configuartion time setting. > Another way is to use the injector for this > <https://blog.thoughtram.io/angular/2015/05/18/dependency-injection-in-angular-2.html>, > > and swap out the implementation during config. > > Regards > Sander > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
