Skip to content

Instantly share code, notes, and snippets.

@leandromoreira
Created August 8, 2013 01:26
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 leandromoreira/6180641 to your computer and use it in GitHub Desktop.
Save leandromoreira/6180641 to your computer and use it in GitHub Desktop.
angular.module('goodsCom')
.factory('Goods', function($http){
var response = {};
$http.get('api/songs.json').
then(function(result){
response.list = result.data;
});
return {all: response};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment