Skip to content

Official way to call a method from outside the view model. #329

Closed
@henryfw

Description

@henryfw

I'm trying to integrate Vue into a Backbone.js app. What is the official way for outside code to call a method in Vue? Is it something like:

// inside the Backbone.View
this.vue = new Vue({ methods: { myFunc : function(){} } } );
this.vue.methods.myFunc.call(this.vue);

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions