Quantcast
Viewing all articles
Browse latest Browse all 4828

How to "eagerly" inject a service

@ctusch wrote:

I'm facing the problem where I bind directly to a property of a service from within my template. This won't work if no JS code has accessed the service before. As a workaround I have to "fake access" the service in my component's init function.

Is there a way to always load the service without having to explicitly access it first? Or is something like this planned?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles