Questions tagged [angularfire]

AngularFire is an officially supported AngularJS binding for Firebase which is a cloud database designed to power real-time, collaborative applications. So you don't need servers to build your Angular app.

AngularFire is an officially supported AngularJS binding for Firebase. Firebase is a cloud database designed to power real-time, collaborative applications. So you don't need servers to build your Angular app.

The bindings let you associate a Firebase URL with a model (or set of models), and they will be transparently kept in sync across all clients currently using your app.

The 2-way data binding offered by AngularJS works as normal, except that the changes are also sent to all other clients instead of just a server.

2756 questions
0
votes
1 answer

How to solve Angular Firebase v.7 issue: Cannot use 'in' operator to search for '_delegate' in users/xxxxx

I am using the new Angular Firebase v.7 with Angular and I am getting an error: Cannot use 'in' operator to search for '_delegate' in users/1QAvZYg6aqe0GhA13tmVAINa. There is a similar question ( Firebase Error: TypeError: Cannot use 'in' operator…
user17884417
0
votes
1 answer

When I add AngularFireAuth to my constructor the site doesn't show up

The title says it all. This is my code with Angular Fire Auth. Nothing shows up. export class HomeComponent implements OnInit { constructor(public afAuth: AngularFireAuth) { } ngOnInit(): void { } } And when i remove it export class…
Denoic
  • 35
  • 1
  • 5
0
votes
1 answer

Angular firebase get user data using id

I have stored user ID in the comment database now I want to fetch user data while retrieving comments using the following code this.firestore.collection("comments", ref => ref.where("enable", "==", true).orderBy("date",…
0
votes
1 answer

Updating a Firestore Collection from a filtered function

I have a firestore collection called Collectors and I'm interacting with it via angularfire. I'm able to subscribe and filtered from it to get the documents on it especially the collectorBillNo (please refer to the image), however, I'm stuck on the…
Carlo A
  • 117
  • 9
0
votes
1 answer

Angular firebase: does not ask which features I want to add

In many Angular firebase tutorials, they always say I should enter this line in the terminal ng add @angular/fire. This then ONLY asks me for which project and will then never ask me which features I want to add (authentication, storage,…
Wouter Vandenputte
  • 1,948
  • 4
  • 26
  • 50
0
votes
1 answer

Angular google authentication with firebase

I want to create simple login authentication with google using firebase. I have installed angular CLI: 13.1.4, firebase, firebase: 10.1.1 & @angular/fire I have configured both environment.ts& env.prod looks like this export const environment =…
0
votes
1 answer

Angular / Firebase / Firestore - How to import firebase to use `serverTimestamp`

Angular - v13.1 Firebase - ^9.6.2 In the old version of firebase, it was possible to import firebase into an Angular component to utilise the serverTimestamp property: import firebase from 'firebase/app'; import…
Que
  • 957
  • 2
  • 14
  • 35
0
votes
1 answer

Angular Fire 7 query collection

Ive been trying to get my head around v7 without too many docs available. Ive come up with code to (well trying too) query a collection and display in Angular (see below): async getAppointments() { const userId = await…
Michael Cockinos
  • 165
  • 2
  • 15
0
votes
1 answer

Can you enable Google Analytics after consent is given in AngularFire?

I want to create a GDPR complying website using Google Analytics. For that, I would like to ask the user for consent before actually saving any cookies. Unfortunately, I cannot find any documentation on that topic, as AngularFire has next to no…
MauriceNino
  • 6,214
  • 1
  • 23
  • 60
0
votes
1 answer

Set password and verify email in one step

Lots of questions about email verification here on SO, but none seem to cover my scenario. We would like to add users ourselves after an intake meeting. Our representative has a form to enter some details like company name, VAT number, contact data…
bertenvdb
  • 83
  • 1
  • 9
0
votes
1 answer

Data interpolation not working in Angular html template

I have a service that reads the data from Realtime Database from product.service.ts: getAll(){ // Get All Products return this.db.list("/products").snapshotChanges(); } Which I use to read data in my…
0
votes
3 answers

Angularfire does not work on ionic capacitor app on ios

I am using ionic with capacitor and angularfire. It works fine but does not work on ios. On ios I don't see any error - just the firebase call that never returns anything. Below is my package.json and other relevant info. ionic.info: ionic info …
Moblize IT
  • 1,140
  • 2
  • 18
  • 44
0
votes
1 answer

Why orderByChild does not sort in AngularFire for Realtime database?

I'm trying to order an acccount list using orderByChild using dateCreated field, but the return list(response) is not sorted by dateCreated this.angularDb.list('accounts', ref => ref .orderByChild('dateCreated').startAt(0).limitToFirst(10) …
0
votes
0 answers

Authentication problem with running ionic app using firebase on native device, everything works fine with live reload

Good morning! I have a strange problem where i can run & authenticate my user on my ios device perfectly fine running the app using the command below. ionic capacitor run -l --external Using an emulator, it works sometimes, though not always. When…
d3Roux
  • 307
  • 1
  • 10
0
votes
1 answer

Collection subscription returns null on server timestamp

I'm adding documents to a subcollection called workReports while I'm subscribed to it. Method for query: getWorkReportsByProjectId(projectId: string): Observable { return this.db .collection("projects") …
MarksASP
  • 494
  • 6
  • 15
1 2 3
99
100