mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-27 15:27:58 +01:00
12 lines
No EOL
338 B
CoffeeScript
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
|
|
] |