mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-27 07:17:59 +01:00
12 lines
310 B
CoffeeScript
12 lines
310 B
CoffeeScript
|
window.pfm.preloaders['favourites-playlists'] = [
|
||
|
'favourites'
|
||
|
(favourites) ->
|
||
|
favourites.fetchPlaylists(true)
|
||
|
]
|
||
|
|
||
|
angular.module('ponyfm').controller "favourites-playlists", [
|
||
|
'$scope', 'favourites'
|
||
|
($scope, favourites) ->
|
||
|
favourites.fetchPlaylists().done (res) ->
|
||
|
$scope.playlists = res.playlists
|
||
|
]
|