Do you have a service with the following subjects?
subjectOne$ = new Subject<Partial<boolean>>();
subjectTwo$ = new Subject<Partial<boolean>>();
subjectThree$ = new Subject<Partial<boolean>>();
subjectFour$ = new Subject<Partial<boolean>>();
If so, how can you dynamically call them from the component?
onToggle(number: string) {
this.myService.subjectOne$.next(this.selected[number]);
}
You mentioned doing the param inside next() but are unsure of how to call subjectXXXX$ dynamically. Any ideas on how to achieve that?