Heinz,
regarding constant injection, for example, I use them to configure different endpoint URLs of external web services. The service support is important, because (AFAIK) it provides the ability to control object's lifetime. Service is instantiated only once (first time when it's requested) and then it lives in DI container during whole application lifetime. However factory creates new object each time, when it's called. So almost always we need services to live as singletons (one per container), so why should we use factories for that?
However in general, the Haxe externals/support for Angular is very important contribution to Haxe community/platform. But as for now we have 3 attempts in this direction and no-one is fully-fledged. That's is sad :(
Понеділок, 8 вересня 2014 р. 16:43:35 UTC+3 користувач Heinz Hölzer написав: