I\'d like to group some of my Vue.js methods together in a sort of \"submethod\" class, but I only seem to be able to have single level methods.
For example, if I wanted
There is actually a very simple technique: create your nested methods in the created hook:
created
created() { this.on = { test: () => {console.log(this)} } this.on.test(); }