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

13 lines
326 B
CoffeeScript
Raw Normal View History

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