ultimatecourses / angular-pro-app-seed

Seed project for Angular Pro final application
112 stars 360 forks source link

Schedule state remains the same when changing date #11

Closed jonolo-3 closed 5 years ago

jonolo-3 commented 5 years ago

Angular 7+ , Rxjs 6+

Basically title. I have a schedule for the current date, but when changing to any other date, regardless of week, that schedule continues showing. Anyone had the same issue? Any tips?

edit: getSchedule() was poorly written. Should be return this.db .list(schedule/${this.uid}, ref => { return ref .orderByChild('timestamp') .startAt(startAt) .endAt(endAt); }) .valueChanges();