# What firebase and angularfire2 version

**URL:** <https://forum.codewithmosh.com/t/what-firebase-and-angularfire2-version/7166>\
**Category:** Angular\
**Created:** [September 5, 2021, 3:48pm UTC](https://forum.codewithmosh.com/t/what-firebase-and-angularfire2-version/7166 "2021-09-05T15:48:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rdgu](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@rdgu](https://forum.codewithmosh.com/u/rdgu)\
**Post date:** [March 29, 2022, 1:00pm UTC](https://forum.codewithmosh.com/t/what-firebase-and-angularfire2-version/7166/2 "2022-03-29T13:00:27Z")

</div>

i have done trial and error for hours.  
the version that works for me is :

- angular : 4
- firebase : 4.13.1
- angularfire2 : 5.0.0-rc.3

even then i got an error in section ‘Building Real-time Apps with Firebase : chapter 6’.  
in the video it is explained that AngularFireDatabase returns observable type, but for me it actually returns AngularFireList type.

So i adjust the code a bit in app.component.ts :

constructor(db: AngularFireDatabase) {  
db.list(’/courses’).valueChanges()  
.subscribe(courses =\> {  
this.courses = courses;  
console.log(this.courses);  
})  
}

and in app.component.html :

\< ul\>  
\< li \*ngFor=“let course of courses”\>  
{{ course }}  
\< /li\>  
\< ul\>

to get the same result as Mosh.

---

_[View the full topic](https://forum.codewithmosh.com/t/what-firebase-and-angularfire2-version/7166)._
