Re: [AngularJS] Re: question about dynamic dependency injection

2017-10-03 Thread Reza Razavipour
ok, thanks Regards, Reza On Tue, Oct 3, 2017 at 11:38 AM, Sander Elias wrote: > Hi Reza, > > You probably will run into a maintenance burden if you go for the OO > version. > > Regards > Sander > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Angu

[AngularJS] Re: question about dynamic dependency injection

2017-10-03 Thread Sander Elias
Hi Reza, You probably will run into a maintenance burden if you go for the OO version. 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 a

[AngularJS] Re: question about dynamic dependency injection

2017-10-03 Thread Reza Razavipour
Hi Sander, the implementation i had in mind, actually on my own, is EXACTLY what the blog describes. I still like this approach. Others involved still like the approach of "configuring", in the OO term, the final GridService. On Monday, October 2, 2017 at 8:25:17 PM UTC-7, Sander Elias wrote:

[AngularJS] Re: question about dynamic dependency injection

2017-10-03 Thread Reza Razavipour
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 El

[AngularJS] Re: question about dynamic dependency injection

2017-10-02 Thread Sander Elias
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 , and swap out the implementation during config. Reg

[AngularJS] Re: question about dynamic dependency injection

2017-10-02 Thread Reza Razavipour
Let me be more specific on how I want to use this. I want to be able to create and instance of, lets say the RESTCommunicationService, and have gridService = new GridService(); gridService.configure(new RESTCommunicationService()) // http is dependency for the RESTCommunicationService On Mon