Guest User

Untitled

a guest
Dec 12th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function doStuff() {
  2. axios.get("/api/endpoint").then(response => {
  3. // do App1.js-specific stuff
  4. }).catch(error => {
  5. // do App1.js-specific error handling
  6. });
  7. }
  8.  
  9. function invokeStuff(){
  10. doStuff();
  11. }
  12.  
  13. function doSomethingOnSuccess(){...}
  14. function doSomethingOnFailure(){...}
Add Comment
Please, Sign In to add comment