mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-30 16:47:59 +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
|
|
] |