I am looking to store several ReplaySubjects in a single array.
Here is my code:
public filteredSearch: ReplaySubject<any[]> = new ReplaySubject(1);
this.filteredSearch[id].next(filter(somedata));
When I run this code, I encounter an error saying "Cannot read property 'next' of undefined." Can someone help me figure out what I am missing?
This code was tested on Angular 7.