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

ionic login with facebook using firebase

i used to have a working code but recently it is broken with auth() not recognized etc. current broken code is: import { Facebook } from '@ionic-native/facebook/ngx' import { AngularFireAuth } from '@angular/fire/compat/auth'; import * as firebase…
Moblize IT
  • 1,140
  • 2
  • 18
  • 44
0
votes
0 answers

Are Angularfire Firestore multiple orderBy's possible? (for example: states ascending, then cities ascending)

Using AngularFire, let's say I want to orderby 'year', and then by 'brand'. It can be done in Firebase by: Query query = cities.orderBy("state").orderBy("population", Direction.DESCENDING); But I am not seeing a way to do so using AngularFire's…
Khepf
  • 352
  • 1
  • 4
  • 24
0
votes
1 answer

Couldn't sort and filter data using angular material

I am currently using firebase as my back end for retrieving data.. and all works fine including pagination except for sorting and filtering data.. as it is getting implemented on the basis of key and not the value, and i am not sure how to fix it.…
0
votes
1 answer

User is logged in yet cannot access Firebase Storage through AngularFire

I am developing a web app using Angular and Firebase through angularfire. I have a service that handles the authentication process for the users called HandleAuthService. I would like to allow users to upload a profile picture of themselves. I am…
0
votes
1 answer

Calling a Promise within a Observable

What I am trying to accomplish is to be able to call my getToken() promise asynchronously from my getEmployees() function but without making it asynchronous my getEmployees() function. Please, any idea and thank you very much in…
raulabad
  • 384
  • 2
  • 9
0
votes
1 answer

Logged User.ID is undefined when i try to get a collection from Firebase in Angular

I am coding a Notes application with Angular and Firebase and everything is working fine except one thing, is when I want to retrieve the notes based on user ID, indeed I do that in the constructor, at first I get the info from the logged user and…
0
votes
1 answer

Angular FirebaseError Missing or Insufficient Permissions

I'm attempting to allow each user read and write their own data using firestore, but I'm getting an insufficient permissions error. I'm not sure why. I have these rules in place for my firestore... rules_version = '2'; service cloud.firestore { …
0
votes
1 answer

AngularFire 7 issue with firebaseUi 5

I have issue with firebaseui after update my project, this is my current code: import { AngularFireAuth } from '@angular/fire/compat/auth'; import firebase from 'firebase/compat/app'; import * as firebaseui from 'firebaseui'; import…
Ali Maher
  • 251
  • 2
  • 8
0
votes
1 answer

Retrieve Firebase realtime database in Json form using Angular

I have used Google Script to send data from Google sheet to firebase realtime database. Here I am trying to retrieve those data in json form. My real time databse looks like: [![enter image description here][1]][1] my…
0
votes
1 answer

How to wait for data to be loaded from Firestore before running functions Angular

Current situation: I have a service that reads the data from Cloud Firestore from employee.service.ts: getEmployeeList(orgID: string) { return this.firestore.collection('orgData').doc(orgID).collection('employeeList').snapshotChanges(); } I…
0
votes
1 answer

How to get Data as Object from Firebase to Service and then to Page correctly (Angularfire + ionic4)?

I am trying to get data from Firebase Realtimedatabase to my mypage.page via firebase.service: I can get simple data (strings for example) inside the firebase.service and mypage.page, but I can’t load objects into mypage.page. In console I get…
0
votes
1 answer

How to get data from Firebase to Service and then to Page correctly (Angularfire + ionic4)?

I am trying to get data from Firebase Realtimedatabase to my firebase.service via a function called getData() inside the firebase.service. I can get the data inside the firebase.service but I can’t load them into mypage page. I can see in the…
0
votes
1 answer

handle snapshotChanges in firestore collection using AngularFire

I have running my application perfectly with "@angular/fire": "^6.1.5", "@angular/core": "~12.0.2" and it was like Service.ts getInboxCollection(userId: string) { return this.firestore.collection(`/user/${userId}/inbox/`).snapshotChanges().pipe( …
0
votes
1 answer

Batch update works as set operation

I need to do a batch update with Firebase's real-time database. I have done it like so: This is working fine. But I need an update only for the 2nd operation. At this moment it works as set operation. Any clue? const updates = {}; //batch…
Sampath
  • 63,341
  • 64
  • 307
  • 441
0
votes
1 answer

Retrieving UID from angularfire

I use angularfire latest version. I look this subject, there is some solutions, but they are solving old angularfire. How can i retrieve user id from angularfire? Note: I tried this code, but it does not work: this.users =…
1 2 3
99
100