How can I set a default value of 'John' for a select option in the ngOnInit function when the page loads? I'm not entirely sure if I'm using the select option correctly. Please let me know if there's an error in my approach.
I attempted to set the value using form group and form control but was unsuccessful in setting the default value upon page load.
I have provided a StackBlitz link where I tried to set the default value as 'John' when the page loads, but it appears blank. Any guidance on where I may be mistaken would be greatly appreciated. Thank you!
Link: stackblitz link