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

11 lines
302 B
CoffeeScript
Raw Normal View History

2015-08-31 17:42:21 +02:00
angular.module('ponyfm').controller "account-image-select", [
2015-10-25 03:35:37 +01:00
'$scope'
($scope) ->
$scope.images = []
$scope.isLoading = true
2015-08-31 17:42:21 +02:00
2015-10-25 03:35:37 +01:00
$.getJSON('/api/web/images/owned').done (images) -> $scope.$apply ->
$scope.images = images
$scope.isLoading = false
]