I'm using the angularfire2 version 5 and i'm getting the following error:
Type 'Observable<{}[]>' is not assignable to type Observable < any [] >.
This is my code:
exercisesList$: Observable <any[]>; ionViewDidLoad() { this.exercisesList$ = this.workoutProvider.getExercises(); } getExercises()
getExercises(){ return this.db.list(`Exercises/${localStorage.getItem('workoutName')}`).valueChanges(); } HTML
<ion-list> <ion-item *ngFor="let exercise of exercisesList$ | async">{{exercise.name}}</ion-item> </ion-list> Screenshot
Any one can explain what is the type of valueChanges and how can i solve this issue.
Thanks.
