Quantcast
Viewing all articles
Browse latest Browse all 229904

Dependency Injection in @Page annotations

I found a way to do this via Injector.resolveAndCreate. If there is there a cleaner way than executing this in the constructor?

var injector = Injector.resolveAndCreate([
HTTP_PROVIDERS]);
var http = injector.get(Http);


Viewing all articles
Browse latest Browse all 229904

Trending Articles



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