I have an input field on my HTML page below:
<ion-input type="text" (input)="getid($event.target.value)" autofocus="true" id="get_ticket_id"></ion-input>
I would like this input field to be cleared every time the page loads or when the user navigates back to it using either the application link or the browser back button.
I have searched extensively for a solution but haven't been able to find one. Can someone please advise me on how to achieve this?