Hey everyone. One Problem and I don’t know what to do I had search a while but don’t find solution:
This is my Code:
arrMedia = [];
constructor(private navCtrl: NavController, private navParams: NavParams, private fdb: AngularFireDatabase) {
this.fdb.list('/kategorien').snapshotChanges().subscribe(item => {
item.forEach(element => {
this.arrMedia = element.key;
})
})
}
And I become this error
Type ‘string’ is not assignable to type ‘any’
What can I do Please help