search-bar = ok

This commit is contained in:
Thomas Cardon 2022-02-25 16:43:31 +01:00
parent 6c1f0338eb
commit 4d92ddb960

View File

@ -1,5 +1,6 @@
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
import { Router } from '@angular/router';
import { RestoPageComponent } from 'src/app/pages/resto-page/resto-page.component';
import { ApiBackService } from 'src/app/services/api-back.service';
@Component({
@ -35,7 +36,8 @@ export class SearchBarComponent implements OnInit {
console.log(this.restauByName);
this.apiBackService.setListRestau(this.restauByName, "filtres");
this.route.routeReuseStrategy.shouldReuseRoute= () => false;
this.route.onSameUrlNavigation = 'reload';
this.route.navigate(['restaurants']);
}
}