I haven't found any samples. Is it possible to use the FirebaseUI with AngularFire2? AFAIK the UI is not part of AngularFire2.
相关问题
- Angular RxJS mergeMap types
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- How to update placeholder text in ng2-smart-table?
- adding sha1 in firebase app fails with error
- How to instantiate Http service in main.ts manuall
相关文章
- angular脚手架在ie9+下兼容问题
- angular 前端项目 build 报错 "Cannot find module 'le
- Angular Material Stepper causes mat-formfield to v
- After upgrade to Angular 9 cannot find variable in
- is there any difference between import { Observabl
- Suppress “Circular dependency detected” suppress w
- How can make folder with Firebase Cloud Functions
- How can you get current positional information abo
There is indeed no direct integration between FirebaseUI (for the web) and AngularFire2.
AngularFire2 has built in sign-in primitives that integrate with the lower-level sign-in functionality of the Firebase Authentication JavaScript SDK. For more about those, see the AngularFire2 documentation on user authentication.
But given that both AngularFire2 and FirebaseUI-Web are built on top of the Firebase Authentication JavaScript SDK, they'll likely work together fine too. If you start a sign-in flow from FirebaseUI, it will in the end trigger an
onAuthStateChanged()
event on the SDK level. That is the same event that AngularFire2 listens to to fire its ownonAuth()
event.Yes, AngularFire and FirebaseUI can work together. You need to:
1: Import FirebaseUI and give it access to firebase (e.g. before bootstrap)
Why you can't just
import * as firebaseui
like you do with firebase2: Init FirebaseUI in a service (so that it only happens once), and pass it the auth instance created by AngularFire.
3: Render the UI in a component
There is also a module available but it currently suffers from this issue