I want to get event.target.value by the codes below.
<input
mdInput
#owner
required
placeholder="荷主"
[formControl]="detail.ownerTx"
[mdAutocomplete]="autoTxt"
(change)="detail.changeOwner(owner.value)"
>
class Detail {
changeOwner(val: string){
console.log(val);
}
}
but the answer of the console.log(val) is nothing.... any idea to actually do the data-binding??