Implemented read locations from json, minor bug fixes and implementations

This commit is contained in:
grata
2023-04-05 13:49:27 +02:00
parent 1d32976a2e
commit 8c22716f67
3 changed files with 78 additions and 88 deletions

View File

@@ -8,15 +8,15 @@
(keydown)="selezionaSuggerimento($event)" placeholder="Type here"
class="input input-bordered input-primary w-full max-w-xs">
<ng-container *ngIf="luoghiPopup | async as luoghi;">
<ul *ngIf="luoghi.length > 0" class="menu bg-base-200 !w-fit p-2 rounded-box" id="list">
<ng-container *ngIf="locationsPopup | async as locations;">
<ul *ngIf="locations.length > 0" class="menu bg-base-200 !w-fit p-2 rounded-box" id="list">
<li class="menu-title">
<span>Places</span>
</li>
<li *ngFor="let luogo of luoghi">
{{luogo.nome}}
<li *ngFor="let luogo of locations" (click)="luogoSelezionato=luogo.location; cercaLuogo(luogo.location)" >
{{luogo.location}}
</li>
<li class="menu-title">