vuejs2 - OnsenUI2 with VUE2 - how to move popover into page stack -


i'm using vue2 , onsenui2 in codepen.

here excerpts html:

<v-ons-button @click="push">push page 2</v-ons-button> <v-ons-button @click="showpopover($event, 'right')" style="align-self: flex-start">pop right</v-ons-button> 

and exerpts javascript:

const page1 = { key: 'page1', template: '#page1',     methods: {          push(){ this.$emit('push-page', page2); }         // tried putting showpopover here , using this.$parent...      } }; new vue({   el: '#app',   template: '#main',   data() { return {     popovervisible: false,     popovertarget: null,     popoverdirection: 'up',     covertarget: false,     pagestack: [page1]     };   }  }); 

the page change works - vue running ok, , there no problems html or javascript, taken the onsenui2 vue example page popover.

looking @ chrome dev tools message (and 57 similar messages):

property or method "popovervisible" not defined on instance referenced during render. make sure declare reactive data properties in data option.

i referencing following cdns:

what wrong code? or should loading cdn's in different order?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -