[Vuejs]-How to receive function parameters for key value type functions in js?

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
}
})
}

Leave a comment