Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

98
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda