this is my current static select field of particular form
<div class="col-sm-6">
<label class="col-sm-4 col-form-label">Select Product</label>
<div class="col-sm-10">
<div class="form-group">
<select class="form-control" [(ngModel)]="xyz.pro_title" name="pro_title" aria-placeholder="select Product" >
<option >Choose Product</option>
<option value="2">One</option>
<option value="3">Two</option>
<option value="4">Three</option>
</select>
</div>
</div>
</div>
</div>
-
Now I want to make this field dynamic , which will take input from anothe form field named “title” which is in another form
-
this is the title field of my another form abc
<div class="col-sm-6"> <label class="col-sm-4 col-form-label">Title</label> <div class="col-sm-10"> <div class="form-group"> <input type="text" class="form-control" [(ngModel)]="abc.title" name="title"> </div> </div> </div> </div>
-
Whe user inserted any title through this field the data is getting stored in database obviously
-
How can I create the dynamic select field in my xyz form which will show values entered and stored by title field of my abc form ?