-
-
Notifications
You must be signed in to change notification settings - Fork 342
Closed
Description
I try to access in specify location with my RTBD on a monofile component but I have some strange results when I use the key k .
Vue.use(Vuefire.rtdbPlugin)
const database = firebase.database();
const k = sessionStorage.getItem("keyEx");
export default {
data : function(){
return {
key : k,
exercice : []
}
},
firebase : {
exercice : database.ref('exercices/').child(k)
}
}Here is my template
<template>
<p>
{{ key || 'No key' }} <br>
{{ exercice }}
</p>
</template>I don't understand why my objects are empty. If I try to use childKey, it will just print an empty array.
But if I just define : firebase : { exercice : database.ref('exercices/') }
How can I access to my child objects with the key k ?
Metadata
Metadata
Assignees
Labels
No labels

