How can I get old data on input form values Angular

I am updating data with this form in Angular. I would like to get the old input’s values when I click on reset button. Can you guys help me please.

<form #myform="ngForm" (ngSubmit) = "onSubmit(myform)" class="form form-register">
  <mat-form-field fxLayout="row" appearance="outline" >
  <label for="name">Name: </label>
   <input name="name" id="name" type="text" ((ngModel))="list('name')" required>
  </mat-form-field>

  <mat-form-field fxLayout="row" appearance="outline" >
  <label for="Location">Location: </label>
  <input name="location" id="location" type="text"  ((ngModel))="list('location')" required>
  </mat-form-field>
  <input type="hidden" #charactername="ngModel" ((ngModel))="list('id')" name="id">


 <div>
  <input type="reset" value="Reset" (click)="clearForm(myform)"> 
  <input type="submit" value="Register">
 </div>
  
</form>