[Vuejs]-Im confuse with axios in seperate service file

0👍

From the looks of your code it looks like you’re using a single quote (‘) and not a backtick (`) when you’re attempting to use JS template literal. You can see an example of that in the MSDN documentation. Since it is a string in your example and not a template literal the variable in the function’s argument is never used.

Try changing the code in your service’s delete method to be this:

return axios.delete(`http://localhost:8081/api/${idLowongan}`)

Leave a comment