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

13 lines
326 B
CoffeeScript
Raw Normal View History

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