So, I have an inout field, and I want to clear the text field when I click on Send, I'm not sure how to do that in typescript for ionic.
This is my code:
<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>
This is my Ts file
send(){
this.ref.push({
//key:this.ref.push().key("hello"),
name: this.name,
message: this.newmessage,
phNo: this.data3,
});