diff --git a/src/app/components/filter-side-bar/filter-side-bar.component.html b/src/app/components/filter-side-bar/filter-side-bar.component.html index 9423810..b9d6b88 100644 --- a/src/app/components/filter-side-bar/filter-side-bar.component.html +++ b/src/app/components/filter-side-bar/filter-side-bar.component.html @@ -22,12 +22,12 @@
diff --git a/src/app/components/filter-side-bar/filter-side-bar.component.ts b/src/app/components/filter-side-bar/filter-side-bar.component.ts index e6aa792..d3bb300 100644 --- a/src/app/components/filter-side-bar/filter-side-bar.component.ts +++ b/src/app/components/filter-side-bar/filter-side-bar.component.ts @@ -8,6 +8,7 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; export class FilterSideBarComponent implements OnInit { @Input() listCategories: string[]; @Output() stateNumber = new EventEmitter(); + @Output() rangeNumber = new EventEmitter(); filterStateNumber: number = 0; constructor() { @@ -25,4 +26,10 @@ export class FilterSideBarComponent implements OnInit { this.stateNumber.emit(this.filterStateNumber); } + onSendValues(minNum: any, maxNum: any): void { + let rangeArray: number[] = [parseFloat(minNum.value), parseFloat(maxNum.value)]; + console.log(typeof(rangeArray[0])); + this.rangeNumber.emit(rangeArray); + } + } diff --git a/src/app/pages/page-accueil/page-accueil.component.html b/src/app/pages/page-accueil/page-accueil.component.html index 20de017..ce25eb3 100644 --- a/src/app/pages/page-accueil/page-accueil.component.html +++ b/src/app/pages/page-accueil/page-accueil.component.html @@ -1,5 +1,5 @@