Currently, I am attempting to insert a new object into my Firebase database
export class AppComponent {
courses$: AngularFireList<any[]>;
course$;ang
author$
constructor(db: AngularFireDatabase) {
this.courses$ = db.list('/courses');
this.course$ = db.object('/courses/1').valueChanges();
this.author$ = db.object('/authors/1').valueChanges();
}
add(course: HTMLInputElement) {
this.courses$.push(course.value);
course.value = '';
}
}
However, while doing so, I encountered the following error:
[ts] Argument of type 'string' is not assignable to parameter of type 'any[]'