私はinoutフィールドを持っています。私はSendフィールドをクリックしてクリアしたいのですが、それはどのようにイオンタイプのテキストスクリプトで行うのですか?ionic v3の入力フィールドをtypescriptでクリアする方法
これは、これは
私のTSファイルである私のコード>
<ion-footer> <ion-item> <ion-input id="testId" type="text" placeholder="Type your Message here..." [(ngModel)]="newmessage"></ion-input> <button ion-button clear item-right (click)="send()">Send</button> </ion-item> </ion-footer>
です
send(){
this.ref.push({
//key:this.ref.push().key("hello"),
name: this.name,
message: this.newmessage,
phNo: this.data3,
});
はい、これは助け –