color and height being string variables set in my app component constructor. I see @Inputs in the component for those variables so I thought I could do something like that, but it doesn't work. If I set anything like that on the selector nothing loads if I call this.slimLoadingBarService.start(), it only works if I don't try to change the color/height. Anyway to do this without having to call this.slimLoadingBarService.color='blue', etc.?
Thanks! I see my real problem is I was setting the variable in the constructor....Your example was very helpful though, couldn't figure out how to put the options inline like that. Thanks for your guidance!
I'd like to be able to set the color and height on the component selector like this:
color
andheight
being string variables set in my app component constructor. I see@Inputs
in the component for those variables so I thought I could do something like that, but it doesn't work. If I set anything like that on the selector nothing loads if I callthis.slimLoadingBarService.start()
, it only works if I don't try to change the color/height. Anyway to do this without having to callthis.slimLoadingBarService.color='blue'
, etc.?