Skip to content

Instantly share code, notes, and snippets.

@dgieselaar
Created October 5, 2015 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgieselaar/8bbba735285b4611248e to your computer and use it in GitHub Desktop.
Save dgieselaar/8bbba735285b4611248e to your computer and use it in GitHub Desktop.
let ctrl = this,
followers = resource('/api/user/followers', { scope: $scope });
followers.reduce( ( requestOptions, data ) => data.filter(follower => follower.followed_by_user));
ctrl.getFollowing = ( ) => followers.data();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment