Hello Stack Overflow community.
I am currently working on a date range filter pipe in Angular to fetch data from an API. However, I'm facing an issue where the filter is not displaying any data after applying it.
The data is being fetched from Firebase:
Below is the service responsible for fetching the data:
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class FacturasService {
constructor(private http: HttpClient) { }
getFacturas() {
return this.http.get('https://loggin-app-fa0a7.firebaseio.com/data/facturas.json');
}
}
Additionally, here is the pipe used to filter the data based on a date range:
...Lastly, this snippet shows how the pipe is applied within the component:
...If you would like to view the whole project, please visit:
https://stackblitz.com/edit/github-necjgp?file=src%2Fapp%2Fservices%2Ffacturas.service.ts
Any help or guidance from the SO community would be greatly appreciated. Thank you!