Not really sure how to explain this but i will give my best shot.
I have an injectable provider that is bootstrapped in the main app. The provider its trying to access a component.
I can access that component using ViewChild from other components, but i cannot from the injectable provider. I think its because the provider its initialized before the component, so its not available to the ViewChild query.
Is there a method to use the Viewchild reference from inside the injectable function? Something like initialize the children when i am calling the function.
Sorry if this is confusing, not really sure how to explain.
Thanks, Radu