Hi,I take a standard example https://framework7io.github.io/framework7-template-vue-simple/, added a method and throws an error. Code:
// Init F7 Vue Plugin
Framework7.use(Framework7Vue);
// Init Page Components
Vue.component('page-about', {template: '#page-about'});
Vue.component('page-form', {template: '#page-form'});
Vue.component('page-dynamic-routing', {template: '#page-dynamic-routing'});
Vue.component('page-not-found', { template: '#page-not-found'});
// Init App
new Vue({ el: '#app',
data() {
return {
// Framework7 parameters here
f7params: {
root: '#app', // App root element
id: 'io.framework7.testapp', // App bundle ID
name: 'Framework7', // App name
theme: 'auto', // Automatic theme detection
// App routes
routes: [{ path: '/about/', component: 'page-about' },
{path: '/form/', component: 'page-form'},
{path: '/dynamic-route/blog/:blogId/post/:postId/',component: 'page-dynamic-routing'},
{path: '(.*)',component: 'page-not-found'}]
}
};
},
methods: {
ter: function () { this.$f7router.navigate('/main/');} }
});
tried and without this, what can be?