Last active
August 29, 2015 14:06
-
-
Save george-i/82c012ba1619b35d1ea9 to your computer and use it in GitHub Desktop.
Accessing and using ApiService
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
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