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