I'm trying to add a preloader in my angular2 app but I'm stuck and can't find a answer on the internet.
I add my preloader component to the main app and an instance is created. Now I'm trying to change my property in the preloader component by injecting the class in my main app and execute the show()
method. But as soon as I inject the preloader class I can see that another instance of my preloader is initiated so the execution of the method doesn't change the property of the rendered component.
I created this plunker so you can see my problem.