3
A tip please if I have a service ServiceY
and this service has an attribute ServiceY.nome
. On the same screen I have four controller
, being: controller_A
, controller_B
, controller_C
and controller_D
the four of them controller
use the same service.
When I’m in the controller_A
and do a certain action, Set a value within ServiceY.nome
, in the controller_B
I make a get of the value present in ServiceY.nome
previously passed and get the correct result.
Now, inside the controller_C
I will set the ServiceY.nome
and in the controller_D
I will read this attribute, but I don’t want to change the values of controller_A
and controller_B
. What would be the best way to do that?
Creating a "name" for each case does not serve?
ServiceY.nomeA
andServiceY.nomeC
. Or create another service. But sharing is not possible.– celsomtrindade