I have been trying to use browser's form-data option in my Angular App but not working properly.
It stores only first user input
but browser is not remembering the second input onward...,
Here is my stackblitz of my code.
<form [formGroup]="myForm">
<mat-form-field hintLabel="Max 50 characters" appearance="fill">
<mat-label>Name</mat-label>
<input matInput #input2 formControlName="myName" id="myName" name="myName" maxlength="50" autocomplete="on">
<mat-hint align="end">{{input2.value?.length || 0}}/50</mat-hint>
</mat-form-field>
</form>
What I tried?
id="myName" name="myName" autocomplete="on"
What else should I use?