All Questions
101 questions
0
votes
2
answers
113
views
Property 'list' does not exist on type 'DatabaseReference'
@Injectable({
providedIn: 'root'
})
export class ChatService {
config = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
...
1
vote
0
answers
32
views
Maximum Callstack Exceeded Error when deleting Child node in firebase
I am using Angular with Angular fire to connect to my firebase realtime database. The structure of the realtime database looks like this:
-requests
|-openRequests
|-{RequestId}
|-...
|-...
0
votes
1
answer
125
views
Getting NullInjectorError when trying to use AngularFireDatabase with Firebase Realtime Database in Angular
i am use
@angular/core: "^16.0.0",
@angular/fire: "7.6.1",
and want to get data from realtime Database firebase
access-lavel.service.ts :
import { Injectable } from '@angular/core';...
1
vote
1
answer
86
views
Getting value from Firebase list response array
I'm trying to get element values from response to list() method when accessing Firebase realtime database. I must have some outdated documentation so the answer may be super easy for someone with ...
0
votes
2
answers
47
views
Firebase .equalto function resolve before executing rest of the code
I am trying to use this service getTodaysRoute() where I figure out what is today's route node key using .equalTo and from what I understand then I have to use this .on function snapshot from which ...
0
votes
1
answer
121
views
How to join 2 lists in Angular firebase
I spent the last 2 hours searching for a solution, and oddly enough, didn't find any. I have worked with sql and nosql databases before but never encountered such a problem. My problem is simple and ...
1
vote
1
answer
795
views
Angularfire Firebase realtime database TypeError: n.auth is not a function
I'm using this basic implementation to create a chatting application between 2 angular projects using the firebase(AngularFire library) real-time database. It works great on the local machine, but ...
0
votes
1
answer
75
views
My promise returns the same value every time it's called despite having different data?
So first the getCart function is called in b-navbar.component.ts:
export class BNavbarComponent implements OnInit{
appUser: any;
cart$ : Observable<ShoppingCart | null>;
constructor(...
0
votes
1
answer
755
views
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 ...
2
votes
3
answers
3k
views
Setting up Firestore with Angular fire results in: NullInjectorError: R3InjectorError(HomePageModule)
I can without any problem set up Firebase Realtime database in a service according
to the GitHub modular sample codes. I know it works because I
can read, write and listen to data changes in the ...
1
vote
0
answers
228
views
How to read/write to nested Firebase Object in Angular
I am working with Angular and Firebase's Real Time Database. I am currently following the AngularFire documentation and am retrieving data as lists. I can't seem to figure out how to get a nested list ...
1
vote
1
answer
2k
views
TypeError: Cannot read properties of null (reading 'quantity')
shopping-cart.service.ts
async addToCart(product:Product){
this.updateItem(product,1)
}
async removeFromCart(product:Product){
this.updateItem(product, -1)
}
private getItem(cartId: string, ...
-1
votes
2
answers
344
views
How do I iterate in reverse with *ngFor directive?
In angular, I am trying to query Firebase and i would like when the objects come back, the content is iterated through, in reverse.
In TS I got this
this.items = db.list('/items', ref => ref....
0
votes
1
answer
253
views
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 ...
0
votes
1
answer
321
views
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 ...