Property binding map click event with dropdown select input in ngx-leaflet/Angular 2
问题 I have a map with regional polygons. Below the map, I have a dropdown select input that dynamically reads in the polygon names as options. When the user clicks the regional polygons on the map, I want the dropdown select input to update with the selected polygon name (which exists as the 'name' field in the geojson file). I figure that the way to achieve this is to use property binding in the HTML template file. So in my select class, I set the value property as the value clicked , like so: