Guest User

Untitled

a guest
Nov 20th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. axiosTest() {
  2. return axios.get(url).then(response => {
  3. // returning the data here allows the caller to get it through another .then(...)
  4. return response.data
  5. })
  6. }
  7.  
  8. axiosTest().then(data => {
  9. response.json({ message: 'Request received!', data })
  10. })
Add Comment
Please, Sign In to add comment