yannbf / may-the-4th

Application for Ionic Hackaton using Star wars API (pretty awesome)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AngularFireDatabase breaking api change in 4.0

kaceo opened this issue · comments

When I try to build the current repo using the latest 4.0 of AngularFireDatabase there is an error.

That class definition no longer provide a .database object.

this.afDatabase.database.ref()

I think it has to be changed to following (not completely sure, but it compiles and runs ok):

 this.afDatabase.app.database().ref()

angular/angularfire#1155