I am using autocomplete component(i,e Display value autocomplete) for my project.Here is the stackblitz example
How can i set a any one list item as default ? like this
Use FormControl SetValue method to set Default Value
this.myControl.setValue( {name: 'Mary'});
Example:https://stackblitz.com/edit/angular-8r153h
set Initial value of FormControl
myControl = new FormControl({name: 'Shelley'});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With