Skip to content

Instantly share code, notes, and snippets.

@unk
Created June 8, 2014 10:16
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 unk/2d11ae0fc68cbd2ed0e8 to your computer and use it in GitHub Desktop.
Save unk/2d11ae0fc68cbd2ed0e8 to your computer and use it in GitHub Desktop.
app.controller('ListCtrl', ['$scope', 'List' , function($scope, List) {
List.contents().then(function(data) {
$scope.result = data.content;
} )
console.log($scope.result); //->undefined 출력
} ]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment