Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doStuff() {
- axios.get("/api/endpoint").then(response => {
- // do App1.js-specific stuff
- }).catch(error => {
- // do App1.js-specific error handling
- });
- }
- function invokeStuff(){
- doStuff();
- }
- function doSomethingOnSuccess(){...}
- function doSomethingOnFailure(){...}
Add Comment
Please, Sign In to add comment