I am on an Ionic2 / Angular2 project. There I have a
*ngFor="let item of items | async | customPipe"
in my code. The async is because items
is an Observable<Item[]>
. My customPipe
is working fine on the first run. But when I make any change to one if the items that would filter it out through my customPipe
it is still shown.
What's the problem? Is the *ngFor
only run once? Or do I have to force a DOM-update? Thanks for any help.
Old question but I also stumbled upon the problem of triggering a pure pipe when the array changes.
To let the pure pipe know, that the array changes, we need to pass a new reference of the array. So in the case of items you can try it like this: