I'm kind of new to angular and, **What I'm trying to achieve is ** I need an input box in a form which has values pre-populated which I get from a parent component and I'm using the template-driven form so what I tried was
<input
type="text"
id="empinput1"
class="form-control"
name="empid"
ngModel
[value]="data['empid']"
/>
note, data is the input i got from parent component
and usually, onsubmit gives the value of the input in relation to the name property of the input box thus I can send to the API But this gives me a blank input box rather than populating the value as set by [value] field any help is highly appreciated :D