merge thomas into dev

This commit is contained in:
Thomas Cardon 2022-02-15 15:03:21 +01:00
parent c633f4dc3d
commit e945b46aba

View File

@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { ApiBackService } from 'src/app/services/api-back.service';
@Component({
selector: 'app-filters-page',
@ -17,7 +18,7 @@ export class FiltersPageComponent implements OnInit {
maxPrice: any;
selectPrice : any;
constructor() {
constructor(private apiBackService : ApiBackService) {
this.minDistance = 0;
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){
this.selectDistance = valueDistance.target.value;