Setmethods on click method

below this throws error how to setstate in methods bind that value in same html page.

methods: {
var self = this;
userList: () => {
app.request.get(‘’ ,
, function (data) {
var userlistdata = JSON.parse(data);
userlist: userdatalist,

Что написано в тексте ошибки?

Cannot read property ‘$setState’ of undefined

change to:

userList: function () {
var self = this;


1 Like

sorry i tired like this but shows same error. i made mistake in question part.

Покажите код на jsfiddle