@gigocabrera wrote:
In my ionic 1 app I had the following global variable in the app.js file
/* FIREBASE */ var fb = new Firebase("https://brilliant-inferno-1044.firebaseio.com");
From the
factories.js
I was able to reference it as follows:ref = fb.child("houses");
How can I do the same in ionic 2? Should it live in the constructor of the class for the app.js file in ionic2?
this.firebaseUrl = "https://brilliant-inferno-1044.firebaseio.com"; (maybe?)
Posts: 10
Participants: 4