Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var count = 1;
- $httpBackend.when('GET', '/getlist', {}).respond(function(method, url, data, headers) {
- console.log("count:" + count);
- if(count==1) {
- count = count + 1;
- console.log("increase count");
- return [200, '[{"first":"1"}, {"second":"2"}]', {}];
- }
- return [200, '[{"item-id": "003", "item-user": "Test User"},{"first":"1"}, {"second":"2"}]', {}];
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement