From e945b46aba84be7f45b59ca85c8661d9810a3041 Mon Sep 17 00:00:00 2001 From: Thomas Cardon Date: Tue, 15 Feb 2022 15:03:21 +0100 Subject: [PATCH] merge thomas into dev --- src/app/pages/filters-page/filters-page.component.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/pages/filters-page/filters-page.component.ts b/src/app/pages/filters-page/filters-page.component.ts index b2afa2a..4b58349 100644 --- a/src/app/pages/filters-page/filters-page.component.ts +++ b/src/app/pages/filters-page/filters-page.component.ts @@ -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;