Walk with a for in VueJS

0

Dear I am developing an application with electronjs and vuejs, but I have a problem. I'm using vuetify and I can not show the firebase data, it just happens to me with vuetify ... now I explain it.

<v-flex xs12 sm6 d-flex>
        <v-select
          :items="items"
          label="Standard"
        ></v-select>
      </v-flex> 

And in Vuejs:

items:function(){

    return this.localidad 
/*localidad es la conexion a firebase.localidad.descripcion*/

}

locality is declared as an attribute in the co -ponent:

let localidad = mdb.ref('localidad').child('pcia_descripcion');
let pais = mdb.ref('pais');
let provincia = mdb.ref('provincia');

new Vue({
    el: '#ausuario',
    firebase: function () {
        return {
            tipodentidad: tidenti,
            localidad: localidad,
            pais: pais,
            provincia: provincia
        }
    },

My question is: how do I show the location data in the dropdown (select) with v-bind:items="localidad" . I think it would be best to go through the array of the component within the property "locality", but I do not know how to do it, look for information and not econtre.

    
asked by Nahuel Jakobson 13.09.2018 в 15:41
source

1 answer

0

I answer everyone ... the solution was here:

link

<v-select
:items="items"
v-model="select"
item-text="name"
item-value="id"
return-object
></v-select>
    
answered by 19.09.2018 в 23:15