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
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