I'm using angular 9 together with angular material. I've got dynamic list of strings that I wanna be able to edit - each in a separate input. I also wanna be able to add and delete them, and have some animations for that.
Issue: :enter and :leave animations fire on each value change.
Stackblitz: https://stackblitz.com/edit/angular-material-baseline2-7pmidv
So far, best solution I've came up with is to use separate object for storing values.
public list:{value:string}[] = [{value: "1"}, {value: "2"}, {value:"3"}];
instead of
public list: string[] = ["1", "2", "3"];
I was wondering if there is a better way to do it.