Pony.fm/resources/assets/scripts/app/controllers/artists-list.coffee
2015-08-31 16:42:23 +01:00

12 lines
No EOL
338 B
CoffeeScript

window.pfm.preloaders['artists-list'] = [
'artists', '$state'
(artists, $state) ->
artists.fetchList($state.params.page, true)
]
angular.module('ponyfm').controller "artists-list", [
'$scope', 'artists', '$state'
($scope, artists, $state) ->
artists.fetchList($state.params.page).done (list) ->
$scope.artists = list.artists
]