I'm using a pipe on a ngFor loop for groupBy.
<div *ngFor="let ratePlan of ratePlans | groupBy: 'fonctionnel'">
The cinematic of data retrieve is the following :
- Retrieve ratePlans[] from @Input
- Retrieve 'fonctionnel' key with ratePlans[i].Id
My issue is on the pipe that run once with empty key. So I need to launch the groupBy pipe when 'fonctionnel' key is set. If I set pipe as pure: false, then the groupby is working but all the next stuff is broken (every update on ratePlans[] refresh the page).
So how to resolve this problem ?
Thanks for your help.