Pony.fm/resources/assets/scripts/app/controllers/account-image-select.coffee
2015-10-24 19:35:37 -07:00

10 lines
302 B
CoffeeScript

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
]