Migrate to model instead of input, if the input is being used inside two way binding or the input value is being changed inside the component
eneajaho opened this issue · comments
Enea Jahollari commented
Migrate to model instead of input, if the input is being used inside two way binding or the input value is being changed inside the component
Vladimir Drayling commented
Will the following code be migrated, too?
@Input()
value: string;
change() {
...subscribe(v => (this.value = v));
}
would become
value = model<string>();
change() {
...subscribe(v => this.value.set(v));
}