Skip to main content

All Questions

1 vote
1 answer
41 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,177
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
79 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
1 answer
30 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
1k views

Firebase not working properly on Angular 17

When I try to go to my login page, it does not show anything and throws the error "NullInjectorError: No provider for InjectionToken angularfire2.app.options!" in the console. This is my ...
rroyy's user avatar
  • 11
1 vote
1 answer
50 views

how do I push an object to a firestore array?

I have a Firestore array called ActivityLogList[]. There will be other users editing their objects concurrently in this Array (each user will have their own object). What I am attempting is to add/...
Thomas Degroot's user avatar
0 votes
1 answer
244 views

How to connect to a second database using Angular Fire?

I have this code: import { FirebaseApp } from "@angular/fire/compat"; import { AngularFirestore } from "@angular/fire/compat//firestore"; import { initializeFirestore } from &...
Omar Dulaimi's user avatar
  • 1,097
3 votes
1 answer
349 views

How to access non-default Firestore database in AngularFire

I'm trying to access another firestore database in my gcloud project. I can access the default one (default) fine, but I have one called 'development' that I can't access, and can't find any ...
chumberjosh's user avatar
0 votes
1 answer
258 views

firebase firestore is working locally but not when deployed in angular. Error: Service firestore is not available

I have added @angular/fire to my project to use firestore and it worked fine locally and it was writing to the firestore. However, when I deployed it (to my firebase hosting). It stopped working. Note ...
Ahmed's user avatar
  • 561
2 votes
1 answer
219 views

AngularFire v7.6: FirebaseError: Expected first argument to collection() to be a CollectionReference

after updating to angular 16 and angularfire 7.6 I now receive this error when i try to just load a simple collection. Here the code of my service: import { Injectable } from '@angular/core'; import { ...
Bourbon's user avatar
  • 687
0 votes
1 answer
243 views

Unit test gives an error about missing provide AngularFireModule in my AppModule

I created a project based on angular with the addition of firebase, when performing unit testing, karma shows an error from all components to which services containing Firestore functionality are ...
Pavel Sergeev's user avatar
0 votes
0 answers
85 views

Writing to firestore database with 'Access-Control-Allow-Origin': '*'

I'm having trouble with saving some data into firestore db. I'm building an investing app for Steam (the gaming platform) items. All I'm using is Angular with Firebase, basically serverless app. But I'...
Tchiggy's user avatar
  • 131
1 vote
0 answers
135 views

Error while trying to setup AngularFire on an Angular project

I am trying to set up AngularFire for a new Angular project. I followed the official documentation there but I am constantly getting the following error: FirebaseError: Expected first argument to ...
Laïta's user avatar
  • 91
0 votes
1 answer
309 views

How do i use 2 Firebase projects in a single Angular app using AngularFire?

I need to connect a second Firestore db to my Angular app and havent found a clean way to accomplish this. I have seen this challenge solved on stack in the past (How can I connect two databases with ...
Remy Bartolotta's user avatar
0 votes
1 answer
28 views

iterate over firestore batch elements

What is the recommended way to iterate over write batch operations? commit(batch:WriteBatch){ if(batch does not contain a write to /Documents/users){ batch.update(/Documents/Users/uid,{...
dsl400's user avatar
  • 400

15 30 50 per page
1
2 3 4 5
50