I want to have a single field which acts as a drop down and also as a input text field , Where user can either select value from drop down or input a text.
I found something similar , below is the code snippet of the same.
<input type="text" name="city" list="cityname">
<datalist id="cityname">
<option value="Boston">
<option value="Cambridge">
</datalist>
How can use the datalist in angular and fetch the options from a rest api call?
refer the below link for working model of datalist plain -->https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_datalist