Can you explain why this error message is appearing:
Argument of type '[string, { startTime: string; endTime: string; }][] | null' is not assignable to parameter of type 'Collection<unknown>'.
It occurs when attempting to utilize the async
pipe within an iteration of a ngFor
loop:
<div *ngFor="let slotDay of slots | async | paginate: { id: 'pagination', itemsPerPage: 3, currentPage: p }">
The slot variable in question is defined as follows:
aaa: Subject<[string, {startTime: string, endTime: string}][]> = new Subject();
Does this error indicate that Angular is expecting the Subject to potentially return a null value? How can this issue be resolved?
Your assistance is greatly appreciated.