Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Dependency Injection in @Page annotations

$
0
0

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 228595

Trending Articles



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