mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-24 05:57:59 +01:00
12 lines
No EOL
328 B
CoffeeScript
12 lines
No EOL
328 B
CoffeeScript
window.pfm.preloaders['albums-list'] = [
|
|
'albums', '$state'
|
|
(albums, $state) ->
|
|
albums.fetchList($state.params.page, true)
|
|
]
|
|
|
|
angular.module('ponyfm').controller "albums-list", [
|
|
'$scope', 'albums', '$state'
|
|
($scope, albums, $state) ->
|
|
albums.fetchList($state.params.page).done (list) ->
|
|
$scope.albums = list.albums
|
|
] |