Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Can I use AngularJs for implementing Dependency Injection in my application?

$
0
0
  1. Is this possible at all? Has this been tried before? Are there any other ways to implement DI in Titanium?
  2. What is the application seem in a Titanium Application which is the most appropriate place to bootstrap IOC and how? (I'm thinking the composition root should be in app.js)
  3. What are the implications of having DI implemented in a Ti App considering dependency lifetime management? i.e. possible performance/memory concerns, etc.

What I'd really like to do is to register platform specific implementations of a dependency in the composition root rather than having "if platform == android / ios" checks everywhere in code. This would ideally limit the platform checks to the composition root. Rather than DI, is there any other way to do it?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>