Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

95
Views
Cannot update data in Firebase using Angular 13

Its my first time using Firebase so still trying to get the hang of things but I can't seem to write to the RealTime database. I have updated the rules to 'write'.

import { Injectable } from '@angular/core';
import { AngularFireDatabase } from '@angular/fire/compat/database';


@Injectable({
providedIn: 'root'
})

export class UserService {

constructor(private db : AngularFireDatabase) { }

  save (user: firebase.default.User) {
    this.db.object('/users/'+ user.uid).update({
    name: user.displayName,
    email: user.email
    });
  }  
}

I am using google authentication and the User itself is created under the Authentication tab. Additionally I also monitored the network tab in chrome and there is no request to any database when the save function is called which leads me to assume that the database has been incorrectly set up .

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Took a break, restarted my pc, opened VS code and served the project and somehow it started working. Sometimes the good old "switch off, switch on" does wonders.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!