I have 2 separate controllers (no relation) and one service shared between the two. In controllerA, I have ng-click attribute on an element that is repeated, it is sending a True/False value to a function within the shared service.
When this function receives a call i want to Increment or decrement an integer in ControllerB based on the bit.
ControllerB's Integer should have no dependency on ControllerA, it receives an Count from its own API currently this value is set to the ng-model attribute.
The controllers already share the service. I am unsure how to "Inject" to Controller B, and alter the value of ng-model.
Also is the architecture incorrect ? Since at some point controllers interact should i force a parent child relationship? It is only going to be for a handful of scenarios this will need to happen.