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