mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-24 05:57:59 +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
|
|
] |