Pony.fm/resources/assets/scripts/app/controllers/favourites-playlists.coffee

13 lines
344 B
CoffeeScript
Raw Normal View History

2015-08-31 17:42:21 +02:00
window.pfm.preloaders['favourites-playlists'] = [
2015-10-25 03:35:37 +01:00
'favourites'
(favourites) ->
favourites.fetchPlaylists(true)
2015-08-31 17:42:21 +02:00
]
angular.module('ponyfm').controller "favourites-playlists", [
2015-10-25 03:35:37 +01:00
'$scope', 'favourites'
($scope, favourites) ->
favourites.fetchPlaylists().done (res) ->
$scope.playlists = res.playlists
]