I have an input box using ng Ant design now am using the readonly attribute for the input field. once the user click on edit the readonly has to become the editable field. how to achieve this.
Code:
<i nz-icon type="edit" class="toolbar-icon" (click)="edit()"></i>
<input type="text" nz-input [ngModel]="'French'" [readonly]="true">
ts file:
edit() {
console.log("function called");
}