I have an *ngFor
directive used on an array
of objects, which have quite a lot of properties.
I would like this *ngFor
to be updated only when three of these properties are changed, but according to the documentation on TrackByFunction, there isn't a valid example of how to achieve that.
I tried to return an object with the properties in it, but it doesn't seem to work, as the template still gets rendered again when any other property is changed.