Pony.fm/public/scripts/app/controllers/artists-list.coffee

12 lines
338 B
CoffeeScript
Raw Normal View History

2013-08-01 04:01:41 +02:00
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
]