Questions tagged [angularfire5]
104 questions
0
votes
1 answer
Type '{}[]' is not assignable to type 'AngularFireList'
I'm new with Angular and Firebase, I'm trying to get all of my items of a node to an AgularFireList, but I get this error:
Type '{}[]' is not assignable to type 'AngularFireList'.
Property 'query' is missing in type '{}[]'.
My code is:
my_notes:…

Felipe Serrano
- 3
- 1
0
votes
0 answers
How can I get specified value from array of NgbTypeahead
Here is my form.html
0
votes
1 answer
How to sum fields value from Observable with Angular 4 Firestore array
I'm new in Cloud FireStore and have been searching for many days without results, for a simple solution on how can I sum some fields value of an array coming from Observable Angular Firestore. I have a list of rows and I want sum and have the column…

CaribeSoft
- 577
- 1
- 8
- 25
0
votes
1 answer
Angular - Return value as undefined
I have the following function:
redirect() {
this.afs.collection('links').doc(this.path).ref.get().then(function(doc) {
if(doc.exists) {
// define data and clicks
var data = doc.data();
var clicks =…

Gurgen Grigoryan
- 265
- 1
- 5
- 17
0
votes
1 answer
Ionic3, AngularFire - Property 'remove' does not exist on type 'Observable'
I have been following an outdated tutorial (this playlist in particular) and I got lost switching between AngularFire 4.0 and AngularFire 5.0.
It's a simple CRUD application which implements Firebase.
The code is uncouth, but I am able to view and…

kenyami
- 59
- 8
0
votes
1 answer
Angular Firestore filter docs based on permissions
I'm having trouble querying a collection where the documents have differing permissions on them.
Is there anyway to perform a query on a collection to prevent getting permissions denied on documents I can't read. I'm able to achieve this if I query…

user1019416
- 29
- 5
0
votes
0 answers
ngrx add/update array to state array
I have an events database maintained in Firestore. I use AngularFire5 to keep the events synced to my app.
The events have many 'sessions', that can be updated my multiple administrators and users(ratings, questions etc).
I'm using ngrx store,…

Elvis Ninan
- 83
- 1
- 9
0
votes
0 answers
Cloud Firestore data retrieval fails in 'ng build' version only
I'm having a really odd problem with my app, localhost seems to work fine for me. But anytime I use ng-build, or ng-build --prod and deploy to my firebase I have issues with retrieving data. Sometimes it will return data like when i load up on my…

Ryann Galea
- 307
- 3
- 18
0
votes
1 answer
angularfire2 5.0.0-rc.2 does not return empty value any more
In angularfire 2 4.x.x, I was using angularfire object observable to show loading status before the data was fetched from firebase like below.
const ref: FirebaseObjectObservale = AngularFireDatabase.object('/path');

Peter Ye
- 53
- 6
0
votes
1 answer
AngularFire2 - Get node-UID generated by Firebase?
I am trying to get the uid that Firebase generate for my new records/documents, the one shown here:
I'm trying to get a document, but since I don't have its id, I cannot reach it. This code won't return the records' uids, it only returns the…

Multitut
- 2,089
- 7
- 39
- 63
0
votes
3 answers
Retrieving Data from AngularFire : "^5.0.0-rc0" to component's HTML file using service
I'm trying to retrieve data from Angularfire : "^5.0.0-rc0" using a service, and want to return the result to the component using this service, and the component should print the result from firebase to html file.
I am facing issue due to async…

GauravA.
- 35
- 1
- 9
0
votes
2 answers
Angularfire5 - Get the key of Realtime database documents in list - #askfirebase
I am loading a list and passing it to a component to then render the information. One of the items I need is the ID. How can I see that in the list. I've seen the documentation and it does not help. It only shows the key of the…

Xerri
- 4,916
- 6
- 45
- 54
-1
votes
1 answer
Angular Firestore - how to get a doc without it's key
I'm working with Angular Firestore and I've been struggling with this particular task the last two days. Here is what I need: When user taps the save button, I call:
save(group: IGroup){
if(group.id){
this.update(group);
}else{
…

Rob
- 2,243
- 4
- 29
- 40