Pony.fm/public/scripts/app/controllers/playlist.coffee
2013-08-01 03:57:08 -05:00

12 lines
No EOL
330 B
CoffeeScript

window.pfm.preloaders['playlist'] = [
'$state', 'playlists'
($state, playlists) ->
playlists.fetch $state.params.id, true
]
angular.module('ponyfm').controller 'playlist', [
'$scope', '$state', 'playlists'
($scope, $state, playlists) ->
playlists.fetch($state.params.id).done (playlist) ->
$scope.playlist = playlist
]