Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic / firebase stuck loading forever

$
0
0

Do Not Remove Cordova, You may face some serious problem in future when you want to use some native library.

I made some tricks which solved this issue for me.

Create firebase instance just after app module like this -
var appMain = angular.module('starter', ['ngCordova','ngStorage','ionic','starter.controllers','starter.services','firebase']);
var firebaseInst = new Firebase("https://xyz.firebaseio.com/");

& this instance you can directly call in controller

var objMatches = $firebaseObject(firebaseInst.child("methods"));

--- Do Not Create Services for firebase instance.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>