The signals in Angular are pretty nice. However I'm struggling with handle multiple signals. In a very simplified example is a service ExternalController that defines two signals controller1 and controller2.
Now I want to trigger a method if a signal value changes.
service ExternalController { public controller1 = signal(null); public controller2 = signal(null); constructor() { effect(() => { if (controller1) do something if (controller2) do something else }) } } The problem is that effect() fires whenever a signal has changed. But how can I find out which signal has fired?