Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

96
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda