mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-30 16:47:59 +01:00
12 lines
377 B
CoffeeScript
12 lines
377 B
CoffeeScript
|
window.pfm.preloaders['playlists-list'] = [
|
||
|
'playlists', '$state'
|
||
|
(playlists, $state) ->
|
||
|
playlists.fetchList($state.params.page, true)
|
||
|
]
|
||
|
|
||
|
angular.module('ponyfm').controller "playlists-list", [
|
||
|
'$scope', 'playlists', '$state',
|
||
|
($scope, playlists, $state) ->
|
||
|
playlists.fetchList($state.params.page).done (searchResults) ->
|
||
|
$scope.playlists = searchResults.playlists
|
||
|
]
|