mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-27 15:27:58 +01:00
12 lines
No EOL
330 B
CoffeeScript
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
|
|
] |