Pony.fm/public/scripts/app/controllers/account-image-select.coffee

10 lines
259 B
CoffeeScript
Raw Normal View History

2013-07-27 05:00:45 +02:00
angular.module('ponyfm').controller "account-image-select", [
'$scope'
($scope) ->
$scope.images = []
$scope.isLoading = true
$.getJSON('/api/web/images/owned').done (images) -> $scope.$apply ->
$scope.images = images
$scope.isLoading = false
]