I am trying to pass data that is saved a component and I want to pass on a service. But for some reason Events doesn’t work. Is there any way to do this?
You could have a method in your service called setVariableX, and use it to set variable X. No need for anything fancy.
1 Like
Remember that a service is just a class. So if you want to pass data just do it via a method or maybe edit a property (wouldn’t do it due to encapsulation but that’s on you.)
1 Like