merge thomas into dev

This commit is contained in:
Thomas Cardon 2022-02-15 15:03:21 +01:00
parent c633f4dc3d
commit e945b46aba
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { ApiBackService } from 'src/app/services/api-back.service';
@Component({ @Component({
selector: 'app-filters-page', selector: 'app-filters-page',
@ -17,7 +18,7 @@ export class FiltersPageComponent implements OnInit {
maxPrice: any; maxPrice: any;
selectPrice : any; selectPrice : any;
constructor() { constructor(private apiBackService : ApiBackService) {
this.minDistance = 0; this.minDistance = 0;
this.maxDistance = 4; this.maxDistance = 4;
@ -29,7 +30,12 @@ export class FiltersPageComponent implements OnInit {
} }
ngOnInit(): void {} ngOnInit(): void {
this.apiBackService.getRestaurants().subscribe(resp =>{
console.log(resp);
})
}
changeValueDistance(valueDistance: any){ changeValueDistance(valueDistance: any){
this.selectDistance = valueDistance.target.value; this.selectDistance = valueDistance.target.value;