Commit 0756617d authored by Julien's avatar Julien
Browse files

fixing import

parent 3a11baf2
Pipeline #17256 failed with stages
in 1 minute and 36 seconds
......@@ -4,14 +4,14 @@
<!-- <input type="search" class="form-control" placeholder="Rechercher" (input)="onSearch($"> -->
<select name="ville" id="" class="form-control" (change)="filterVille($">
<option value="">Choissisez une ville</option>
<option *ngFor="let ville of villes" value="{{ville}}">{{ville}}</option>
<option *ngFor="let ville of getVilles()" value="{{ville}}">{{ville}}</option>
<a *ngFor="let agence of filteredAgencies" href="#" class="list-group-item list-group-item-action"
<a *ngFor="let agence of getFilteredAgencies()" href="#" class="list-group-item list-group-item-action"
(click)="onSelect(agence)" []="agence==getSelectedAgence()">{{agence.nom}} <span class="text-muted">à {{agence.ville}}</span> </a>
<div class="col-9">
<form action="" [style.visibility]="queryVehicules == undefined ? 'hidden' : 'visible'">
<form action="" [style.visibility]="getQueryVehicules() == undefined ? 'hidden' : 'visible'">
<legend>Filtrer les voitures</legend>
<div class="form-row">
......@@ -41,7 +41,7 @@
<button class="btn btn-primary" (click)="filter()">Filtrer</button>
<div *ngFor="let vehicule of queryVehicules" class="card border-primary" style="width: 15rem;display:inline-block;margin:5px;">
<div *ngFor="let vehicule of getQueryVehicules()" class="card border-primary" style="width: 15rem;display:inline-block;margin:5px;">
<img class="card-img-top" src="{{vehicule.path_image}}" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">{{vehicule.marque}}</h5>
......@@ -176,4 +176,16 @@ export class HomeComponent implements OnInit {
getSelectedAgence(): Agence {
return this.selectedAgence;
get Villes(): String[] {
return this.villes;
getFilteredAgencies(): Agence[] {
return this.filteredAgencies;
getQueryVehicules(): Vehicule[] {
return this.queryVehicules;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment