I am working on Angular and had a simple code as shown below. How do I capture the input value when the "set" button is clicked and display on displayText through string interpolation?
<div>
<h3>You just entered: <span>{{displayText}}</span></h3>
</div>
<div>
<mat-form-field>
<input matInput placeholder="Insert your text">
</mat-form-field>
</div>
<div>
<button mat-button>Set</button>
</div>