Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIREBASE_PROVIDERS, defaultFirebase issue #43

Closed
TheoMer opened this issue Feb 3, 2016 · 2 comments
Closed

FIREBASE_PROVIDERS, defaultFirebase issue #43

TheoMer opened this issue Feb 3, 2016 · 2 comments

Comments

@TheoMer
Copy link

TheoMer commented Feb 3, 2016

The inclusion of defaultFirebase in my provider,

providers: [HeroService, defaultFirebase('https://myUrl.firebaseio.com')];

or FIREBASE_PROVIDERS and defaultFirebase in my bootStrap,

bootstrap(AppComponent, [FIREBASE_PROVIDERS, defaultFirebase('https://myUrl.firebaseio.com')]);

causes my app to hang indefinitely. if I remove these definitions, the app again loads correctly. No error messages are issued.

Is this a known issue?

My github repo is here: https://github.com/TheoMer/angular2firebase2

@jeffbcross
Copy link
Contributor

defaultFirebase isn't included yet in any distribution of angularFire2, so the likely cause is that an exception is being hidden for some reason. Here is the README for the latest version of angularFire2 alpha published to npm: https://github.com/angular/angularfire2/blob/0d5f951884567c581d75db102a31d414f0abb661/README.md

@warnerpinz
Copy link

@jeffbcross Is there a way to integrate angularfire2 in ionic 2? I see that to initialize firebase connection, we have to define bootstap(FIREBASE_PROVIDERS..) in angular 2 app. However, for ionic 2, I don't think it's allowed to define bootstrap(). Could you enlighten me on how I can initialize firebase using angularfire2 in ionic? THanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants