Component.ts file
val: string = ' ';
Component.html file
<div class="col-12">
<input type="text" name="twoWay" [(ngModel)]='val'>
<p>The value is {{val}}</p>
</div>
Component.ts file
val: string = ' ';
Component.html file
<div class="col-12">
<input type="text" name="twoWay" [(ngModel)]='val'>
<p>The value is {{val}}</p>
</div>