Cannot reference this.$f7.methods inside vue component


#1

the this.$f7.methods property is an Observer which looks useless.
How can I access the root component (app) methods?


#2

Even if it is Observer, it doesn’t mean it won’t work. It should work


#3

Thank you Vladimir for being in touch.
Here what this.$f7.methods is

{__ob__: Observer}
__ob__: Observer {value: {…}, dep: Dep, vmCount: 0}
__proto__: Object

but my app.vue is initialized as

export default{
   ...
   methods : {
       mounted() ...,
       doLogin() ...
   }
}

#4

If it is a root Vue component methods, then in Vue they are under this.$root object