style(HotelItem): correct comparison operator in template
This commit is contained in:
parent
f575d73b3a
commit
27b36bdee0
@ -3,7 +3,7 @@
|
||||
<p>Price: {{hotel.price | currency : getCurrencyCode(selectedLanguage) : "symbol" : "2.2-2" : selectedLanguage}}</p>
|
||||
<select [ngModel]="selectedLanguage" (ngModelChange)="languageChange($event)">
|
||||
@for (lang of langs; track lang.lang) {
|
||||
<option value="{{lang.code}}" [selected]="lang.lang === 'de'">{{lang.lang}}</option>
|
||||
<option value="{{lang.code}}" [selected]="lang.lang == 'de'">{{lang.lang}}</option>
|
||||
}
|
||||
</select>
|
||||
<img src="{{hotel.imageUrl}}" alt="Hotel">
|
||||
|
Loading…
Reference in New Issue
Block a user