This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run in JsBin https://jsbin.com/gujemof/edit?js,console | |
let counter = 0; | |
const getUsersFromGraphApiFake = async (url) => { | |
counter++; | |
if (counter > 4) { | |
return { | |
users: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
angular | |
.module('interceptor', []) | |
.config(config); | |
config.$inject = ['$httpProvider']; | |
function config($httpProvider) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular.module('pollinator').service('service', myService); | |
myService.$inject = ['bbb', 'ccc']; | |
function myService(bbb, ccc){ | |
// api | |
var service = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind":"plus#person", | |
"id":"112095195706125933013", | |
"displayName":"John Black", | |
"tagline":"Web developer", | |
"gender":"other", | |
"aboutMe":"<p>love internet and social game</p>", | |
"relationshipStatus":"engaged", | |
"url":"https://profiles.google.com/112095195706125933013", | |
"image":{ |