Skip to content

Allow methods to be nested #1470

@JosephSilber

Description

@JosephSilber

I think it would make sense to allow methods to be nested under sub-objects:

new Vue({
    methods: {
        group: {
            foo() {
                // `this` should be the vm
            },
            bar() {
                // `this` should be the vm
            },
        }
    }
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions