Skip to content

Instantly share code, notes, and snippets.

@george-i
Last active August 29, 2015 14:06
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 george-i/82c012ba1619b35d1ea9 to your computer and use it in GitHub Desktop.
Save george-i/82c012ba1619b35d1ea9 to your computer and use it in GitHub Desktop.
Accessing and using ApiService
angular.module('app').controller('FeaturesController', function ($scope, ApiService, $timeout) {
var callback = function(data){
// process data
};
ApiService.get('messages', callback);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment