Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [angularfire2]

AngularFire is the officially supported Angular binding for Firebase. The combination of Angular and Firebase provides a three-way data binding between your HTML, your JavaScript, and the Firebase database. This tag is for binding with Angular2+. Don't use this tag for binding with AngularJS.

angularfire2
0 votes
1 answer
42 views

Mocking AngularFireAuth for angular service unit testing

I created a service to handle all of my authentication calls to angularFireAuth, but the basic toBeTruthy assertion is hitting an injector error for angularFireAuth. I solved this for several other ...
Rusty Shackleford's user avatar
0 votes
0 answers
26 views

How can I query a few levels deep in AngularFIre?

I am trying to get some data from a database where I want only objects that contains a certain key/value pair to be returned. I am using RTDB with Angular Fire. Lets say this is the data { "times&...
almostasnecessary's user avatar
0 votes
0 answers
34 views

Angular firebase sign in anonymously not working

I have an Angular 17.3.6 with the package @angular/fire version 17.0.1 installed. When i try to sign in anonymously with Firebase, I get the following error: SignIn Error: FirebaseError: Firebase: ...
Matheus Carvalho's user avatar
1 vote
1 answer
46 views

AngularFire read a Firestore document only once

Using Angular 17 and AngularFire 17, what is the best method for simply getting document data, just once, from a Firestore record? I can get it with the following but this seems overkill as I assume I ...
popClingwrap's user avatar
  • 4,187
0 votes
0 answers
26 views

How does my Service plug into my Child Component

I'm an old hand at AngularJS, and now cutting my teeth once again on Angular, with the new standalone (incase its relevant) and considering how to hook my data from my firebase service to my display ...
BaneStar007's user avatar
1 vote
2 answers
80 views

how can i use serverTimestamp in angular/Fire in the compat mode

I have tried import firebase from 'firebase/compat/app'; import 'firebase/compat/firestore'; const firestore = firebase.firestore; this.form = this.builder.group({ items:[data.items, null], ...
Cristóbal Felipe Fica Urzúa's user avatar
0 votes
0 answers
80 views

angular/fire installation script returns Invalid project id

I am trying to create an authentication page for firebase login. Following the documentation for the @angular/fire package, I created an angular project with ng new angular_fbauth. Then I ran ng add @...
Kody Byrd's user avatar
0 votes
1 answer
31 views

FirebaseError: [code=permission-denied]: Missing or insufficient permissions. even if firestore rules read and write are permitted - Angular-Fire

i've got this problem when calling firestore function from angular fire. When i'm succesfully authenticated, i'm fetching to firestore the current user document id for additional data associated with ...
sachaamm's user avatar
  • 141
1 vote
1 answer
52 views

Why is it so complex to convert AngularFire Observable to Array?

I am calling data from Firebase RTDB and that data is in an Observable. The issue I am having here is that, in my .TS file i would like to access the content of the Observable, that thought seems to ...
almostasnecessary's user avatar
2 votes
4 answers
4k views

Upgraded angular versions and now getting error: "The AppComponent component is not marked as standalone"

I recently updated angular because Angular Fire bugs were fixed in a much newer version. My previous version was before the "standalone" changes. As a result, I'm getting this error in the ...
Drennen Dooms's user avatar
1 vote
1 answer
217 views

I18n Get correct language code in baseHref with firebase hosting and Angular

In my angular project I have set up i18n for "sv"(swedish) and "en". What I want is to when accessing mypage.com, "/sv" or "/en" to be added to baseHref so that ...
pb4now's user avatar
  • 1,195
0 votes
2 answers
1k views

Angular, Firebase - Can not initialize app with standalone components (nor with standard modules..)

I've been struggling to get my angular project working with firebase today. I have an error: main.ts:5 ERROR Error: Either AngularFireModule has not been provided in your AppModule (this can be done ...
Michał Wierzyk's user avatar
0 votes
1 answer
81 views

Using firebaseui with Angular Universal - ReferenceError: window is not defined

I have an Angular 16 app, using Angular Fire, firebaseui and I have recently installed Angular Universal. Whenever I run npm run dev:ssr to enable SSR I receive this error - ./node_modules/dialog-...
Robgit28's user avatar
  • 328
0 votes
2 answers
199 views

Firebase Auth Emulator keeps suggesting real Google accounts

TL;DR Firebase Auth Emulator keeps suggesting real Google accounts. One in a hundred attempts result in an emulator dummy account popup. DETAILED firebase providers setup: importProvidersFrom( ...
pax's user avatar
  • 1,795
1 vote
2 answers
848 views

Angular 17 and AngularFire 17 Error when trying to use service

I have been stuck with this issue for a while now as I'm not familiar with Angular 17 new standalone default without app.module.ts This is my app.config.ts export const appConfig: ApplicationConfig = {...
Pung Worathiti Manosroi's user avatar

15 30 50 per page
1
2 3 4 5
209