Questions tagged [angularfire5]
104 questions
0
votes
1 answer
Can't Fetch Object Keys Using AngularFirestore in Material Datatable
I have a Material Datatable that consists of 3 documents. In the columns, I have an edit column which needs to fetch the ids ($key) so I can route to /object:id.
I suspect this is related to async loading but after making a thorough search to the…

ReturnTable
- 355
- 4
- 12
0
votes
1 answer
How to Throw error in AngularFire Observable
I am using following to code read an object from firebase database using angularfire in my ionic app, but i want to let it wait for certain time if.. no data recieved or unable to connect, i want to throw error.
return this.db.object('/cmtoci')
…

Johne Doe
- 442
- 4
- 9
0
votes
0 answers
how to keep ionic from refreshing page when using firebase
i making a counter when everytime a users click a button it substracts 1 from the counter updates the node in firebase then return this change via another method with .valuechanges.subscribe
but everytime this happens it refreshes the whole page…

user3640924
- 27
- 1
- 4
0
votes
1 answer
I am not being able to access the properties defined in my model class from making service.ts by making an object of that class
Here, x is not being able to access the properties of ShoppingCart
the error it shows is Property item does not exist on type {}
I dont know where is mistake i have made which i am not being able to identified
shopping-cart.service.ts
async…

aniisssh
- 5
- 1
- 2
0
votes
1 answer
Upgrade angular app to use @angular/fire 5.1.0
I'm am trying to upgrade my application to use @angular/fire instead of angularFire2 because its deprecated. The moment that I upgraded evrything i got this error message:
ERROR in node_modules/@angular/fire/auth/auth.d.ts(4,28): error TS2307:…

Seppe Mariën
- 355
- 1
- 13
0
votes
1 answer
AngularFire2: you are using the development build of the firebase SDK
So i'm using the official documentation to setup and install angularfire2.
https://github.com/angular/angularfire2/blob/master/docs/install-and-setup.md
This works fine, my data is coming in but when building for production i get this error:
It…

kevinius
- 4,232
- 7
- 48
- 79
0
votes
2 answers
@angular/fire Real Time Database: How to get key and value under it
Background
I am using ionic 4 with "@angular/fire": "^5.0.2"
The Issue
I want to list all the values under profile node, here's my firebase structure:
I want to get the key, location, ownerName, and restoName. I will use the key later on to open…

Brian Ivander T. P.
- 415
- 2
- 8
- 22
0
votes
1 answer
Angularfire Update nested data
I am using angularfire and firebase firestore database to save image data in a database. The saving works 100%.
My data is nested like this :
Images Collection
galleryId
imageId…

Janpan
- 2,164
- 3
- 27
- 53
0
votes
1 answer
Angular 6 Firebase Custom Auth with token
I am trying to do authentication to firebase server to get the details I used this when I was using angular 1.6
var fbRef = new Firebase(decodedUtSession.fburl);
fbRef.authWithCustomToken(decodedUtSession.fbtkn, function(error, authData)…

Rohit Kotak
- 173
- 1
- 17
0
votes
1 answer
Angular / TS - How to call a function from a component to a service and get a returned value
I have a component that calls "getUserDocInfo()" which is in its own service. How would I go about calling that function and then using the returned data for further code?
My Component
getToken(){
this.userService.getUserDocInfo();
// once…

Que
- 957
- 2
- 14
- 35
0
votes
1 answer
Angularfire Increment transaction
Im having trouble incrementing a count of post "likes". The following is what I have right now:
addLike(pid, uid) {
const data = {
uid: uid,
};
this.afs.doc('posts/' + pid + '/likes/' + uid).set(data)
.then(() =>…

MacD
- 566
- 3
- 9
- 27
0
votes
1 answer
AngularFireAuth error
I have a problem to AngularFireAuth.auth.createUserWithEmailAndPassword()
Each time I call this method current user change to the created user.
I have firebase database rules like:
{
"rules": {
".read": "auth.uid != null",
…
0
votes
0 answers
is it impact the search operations if we manually generate document ids for firebase database?
I am trying to write an optimized search functionality using firestore database and angularfire with angular6 so, what would be good to have manually generated or auto-generated Document IDs?

Mukulit Bhati
- 11
- 1
- 6
0
votes
1 answer
Getting a single AngularFirestoreDocument from a AngularFirestoreCollection query
In Firestore, I have a uid as a field in my Vendor documents:
/vendors
+doc1
uid: 1
+doc2
uid: 2
To access the vendors, I'm using the following function:
getVendor(index: string): AngularFirestoreDocument {
…

Brian A Bird
- 378
- 2
- 18
0
votes
1 answer
matDatePicker with angular cloud firestore and [(ngModel)]
With Real Time Database, I used the angular material matDatePicker to save date news.
Since I have moved on with firestore collection, when I call the saved date in an angular service, it shows it as an object
"date": {
"seconds":…

C. Banzet
- 409
- 2
- 5
- 19