Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

axios append array to params

// You can use paramsSerializer and serialize parameters with https://www.npmjs.com/package/qs

axios.get('/myController/myAction', {
  params: {
    storeIds: [1,2,3]
  },
  paramsSerializer: params => {
    return qs.stringify(params)
  }
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #axios #append #array #params
ADD COMMENT
Topic
Name
7+5 =