0

See this snippet

mmethods: {
    getCustomers: function(page = 1) {
       ....
    }
},
mounted() {
    // Fetch initial results
    this.getCustomers();
}

My problem is that error

Error in mounted hook: "TypeError: this.getCustomers is not a function"

Why?

2
  • 1
    mmethods: instead of methods:? Commented May 6, 2019 at 15:19
  • OMG !!!! Fixed .. sorry. appen an answer and i'll upvote and approve. Sorry Commented May 6, 2019 at 15:20

1 Answer 1

1

It's methods and not mmethods, just a typo

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.