How can I print all the data that I have in firebase?
here the data is printed
this is the js
These are all the data that I have stored in my database of firebase, I only have six data.
just print a data and in the console everything
How can I print all the data that I have in firebase?
here the data is printed
this is the js
These are all the data that I have stored in my database of firebase, I only have six data.
just print a data and in the console everything
You can read the doc here:
http://idangero.us/template7
something like this:
<div class="list-block">
<ul>
{{#each items}}
<li class="item-content">
<div class="item-inner">
<div class="item-title">{{title}}</div>
</div>
</li>
{{/each}}
</ul>
</div>
...
data () {
return {
users: []
}
}
...
// ...code...
let _users = []
querySnapshot.forEach((doc) => {
_users.push({id: doc.id, username: doc.data().first, lastname: doc.data().last})
})
...
self.$setState({
users : _users ,
});
...more code..
{{#each users}}
<li>
...fill data here...
</li>
my code is an example, not the actual solution, change it to your needs.
also, instead of pasting imgs, you can paste your actual code wraped in this ticks -> ``` so its easy to copy paste your code.
like
```
var myCode = ‘Is Awesome’
```
will be converted to:
var myCode = 'Is Awesome'
great is fantastic!.
Thank you very much and I apologize, instead of publishing the captures, it would have been easier to upload the text better.
a question does not work for me when I generate my apk: '(there is nothing in the queries and it shows nothing, what can I do?
This is how it seems to me and it never shows the data: '(
when I show it in the browser and in the phonegap application it works perfectly, but when I think the apk is different, it does not work
I assume you speek spanish, right?
Probaste debugueando el apk? tenes algun error en la consola?
Si hablo español
Cree el apk con el comando cordova build
y me genero un apk llamado app-debug.apk y nunca me genero error en la consola
Ok. Pero debugueaste la aplicacion Ya compilada? Aparece algun error?
No lo he hecho como se hace?
No estoy en mi pc.
Pero lee aca. Asi te horientas un poco
https://developer.android.com/studio/debug/apk-debugger?hl=es-419
Muchas gracias voy a intentar con esto a ver si puedo pero en la app que generó con el comando Cordova build solo me genera un apk debug que es el que instalo en mi celular para ver qué está bien y lo único que hace que mi app falle es firebase es como si no aceptará la incrustación del código no sirve las alertas que uso para depurar el código es como que firebase hace que se rompa mi app pero ya la apk generada porque si lo emuló con phonegap en un server o en la web todo funciona solo es en la apk la variable de configuración de firebase la tengo en routers.js no se si ahí está bien porque si la pongo en mi app.js no funciona nada
Ok. Si qieres comparti el apk y veo de debuguearlo yo a ver que dixe la consola.
No pude no entendí que hacer
El problema es como importas firebase, no lo encuentra y rompe la app. podras compartir como importas FB?
Pues use la guía de implementación de web de firebase si gusta le puedo compartir mi proyecto no lo importo solo copio los script que me genera firebase que son los que aparece ahí
y el var config no se si va en el js routers.js o en app.js no se que estoy haciendo mal :’(
este es mi proyecto proyecto firebase
ese script lo pongo en el index y con eso me lo inicializa
Y no sé cómo se implementaría en framework7
si miras, el primer error dice 404. hace referencia al js de FB.
proba con otro link
https://www.gstatic.com/firebasejs/5.8.4/firebase.js
igua, probe tu link en mi navegador y anda. pero bueno, proba con el que te pase a ver q dice