mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-23 21:47:59 +01:00
12 lines
338 B
CoffeeScript
12 lines
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
|
||
|
]
|