this is the code:
<div class="col-7">
<label>:</label>
<input type="number" class="form-control" placeholder="" (keyup)="inputCoinQty()" required [min]="0.001">
</div>
<div *ngIf="inputCoinQty()" class="text-center">
<p class="my-3">:{{values}}
<img src="/assets/images/pay.png" class="avatar-xxl">
<p class="my-3">
</div>
what you want to achieve: display the class text-center when the user types
this is in the modal of angular2, not in component