I require to show a value i the title bar. but the data in the *ngFor loop. how get that?
here is my code :
<h4 [ngClass]="{'drop-down' : country === countryCode }">{{countryCode}}</h4> //need to show here from under the loop
<ul class="country-list">
<li
*ngFor="let country of supportedCountries;"
(click)="updateCountry(country)">
<span [hidden]="country === countryCode">{{getPropCountry(country)}} {{country}} {{countryCode}}</span> //hiding
<ng-container *ngIf="country !== countryCode">{{getPropCountry(country)}} {{country}} {{countryCode}}</ng-container>
</li>
</ul>
tag? What happens when you click a country in the list?
– hiper2d May 14 '18 at 14:30