or a single-page application, build with a framework such as AngularJS, that gets all it's data from a REST backend this means you should verify your front-end against different responses from your backend. For a small application with primarily GET requests to display data, you might get away with testing against your real (development) backend. But for large and complex applications, you need to mock your backend.
In this post I'll go in to detail how you can solve this by mocking GET requests for an AngularJS web application that's built using Grunt.