Closed ghost closed 8 years ago
how to add array on props..
I have try this
<hisoft-data tabs="array('a', 'b')"></hisoft-data>
and this
<hisoft-data tabs="['a', 'b']"></hisoft-data>
and still got an error.. Expected Array, got String.
this my component
Vue.component('hisoft-data', { template : '#hitemp-data', props : { 'tabs' : Array, }, ready : function(){ console.log( this.tabs ); }, methods : { callAdd : function(){ this.$dispatch('add-data'); }, callFind: function(){ this.$dispatch('find-data'); }, } });
Something like this:
<hisoft-data v-bind:tabs="['a', 'b']"></hisoft-data>
Please use chat or forum for questions.
yes.. thanks.
how to add array on props..
I have try this
and this
and still got an error.. Expected Array, got String.
this my component