My dropdown always shows the title text on it Select Location not showing selected item even though the click event working.
This is .html file
<div ngbDropdown class="d-inline-block">
<button class="btn btn-secondary btn-sm dropdown-toggle" id="dropdownMap" ngbDropdownToggle>Select Location</button>
<div ngbDrop4downMenu aria-labelledby="dropdownMap">
<button class="dropdown-item" *ngFor="let country of countries"
(click)="mapCountry_selected(country)" >{{country}}</button>
</div>
</div>
Code in .ts file
public mapCountry_selected(country)
{
var c=country;
}