Using Amplify.js to Mock Service Calls

your-view-model.js


services.js


mock-services.js



What’s happeing? 

We are simply overriding out service.js with mock-services.js. So… simply include the mock-service.js script AFTER you include the service.js script… And once you don’t want to mock and more, simply comment out…

Resources

Published by and tagged Code using 39 words.