When using Angular 8, if a user inputs "$10" and then clicks on it (using the OnClick event), the box below should be updated with the user input and the entire box should be selected like the example shown in the picture.
I would greatly appreciate any tutorials or advice on this matter.
Check out this image for reference
Here is the HTML code:
<div class="col-md-0.8">
<label class="padding_7">Costs</label>
</div>
<!-- User input field (only accepts positive numbers) which needs to be updated -->
<div class="col-md-1">
<input type="positive-number" />
</div>
<div class="col-md-2">
<button data-target="something" data-toggle="sth model" type="round-button custom-button">Update Cost</button>
</div>
Does anyone have any ideas for the Component.ts file?