• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Pruebas Online
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

166
Vistas
How to get the title collection on firebase?

I want to get the tittle of collections in my firebase project to a select, but i only get the responde inside the collection i want that the select show titles of picture #1

enter image description here

This is my code i use vuejs:

import Firebase from "firebase";
import { configFirebasecalidair } from "../../../constants/config";
let app = Firebase.initializeApp(configFirebasecalidair, "calidair");
let db = app.database();
let datacalidairef = db
  .ref("CalidAir/")
  .limitToLast(20);
datacalidairef.on("value", (snapshot) => {
      const data = snapshot.val();


  for (let key in data){
      sensors.push(data[key]);
  }
  me.resultsensors = data
  console.log('Resultados',data);
  console.log('sensorelista',sensors);

})

and this is my response

enter image description here

almost 3 years ago · Juan Pablo Isaza
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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda