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 { Component, EventEmitter, OnInit, Output } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
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';
|
import { ApiBackService } from 'src/app/services/api-back.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -35,7 +36,8 @@ export class SearchBarComponent implements OnInit {
|
|||||||
console.log(this.restauByName);
|
console.log(this.restauByName);
|
||||||
|
|
||||||
this.apiBackService.setListRestau(this.restauByName, "filtres");
|
this.apiBackService.setListRestau(this.restauByName, "filtres");
|
||||||
|
this.route.routeReuseStrategy.shouldReuseRoute= () => false;
|
||||||
|
this.route.onSameUrlNavigation = 'reload';
|
||||||
this.route.navigate(['restaurants']);
|
this.route.navigate(['restaurants']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user