1👍
loadAllUsers
is not a function. It’s an object.
You cannot call an loadAllUsers
in loadAllUsers(id)
.
It will throw an error
loadAllUsers is not a function
-1👍
loadAllUsers: function(id){
$.ajax({
method: 'get',
url: '/api/v1/users',
dataTransformer: (response) => {
return new JsonApiResponseConverter(response.data).formattedResponse
}
})
}
- [Vuejs]-Detection of vue components finish rendering
- [Vuejs]-How to call/initlialize a vue method from outside of the Vue APP
Source:stackexchange.com