search-bar = ok
This commit is contained in:
parent
6c1f0338eb
commit
4d92ddb960
@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user