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:
- https://cdnjs.cloudflare.com/ajax/libs/onsen/2.5.3/css/onsenui.min.css
- https://cdnjs.cloudflare.com/ajax/libs/onsen/2.5.3/css/onsen-css-components.min.css
- https://unpkg.com/vue@2.4.2/dist/vue.js
- https://unpkg.com/onsenui/js/onsenui.min.js
- https://unpkg.com/vue-onsenui@2.1.1/dist/vue-onsenui.js
what wrong code? or should loading cdn's in different order?
Comments
Post a Comment