Avatar ·

How to get the new selected value from <select> in Angular 2+?

Hello everyone! I'm new to Angular (using Angular 14 with TypeScript) and I can't figure out how to properly get the value that the user selected in the `\n \n \n

You selected: {{ selectedCityName }}

\n `\n})\nexport class MySelectComponent {\n cities = [\n { id: 1, name: 'Moscow' },