I have a text box which is disabled using simple disabled html tag.I need to enable it when I click enable button, again I need to disable it when click disable button. Here is the code below -
app.component.html
<input type="text" disabled value="Sample text box"> <button (click)="enable()" type="button">Enable</button> <button (click)="disable()" type="button">Disable</button>
app.component.ts
enable(){ } disable(){ }