Pony.fm/resources/assets/scripts/app/controllers/favourites-playlists.coffee
2015-08-31 16:42:23 +01:00

12 lines
No EOL
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
]