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
Opened this issue · 1 comments
eneajaho 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
draylegend 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));
}