mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-27 15:27:58 +01:00
10 lines
270 B
CoffeeScript
10 lines
270 B
CoffeeScript
|
angular.module('ponyfm').controller 'playlist', [
|
||
|
'$scope', '$state'
|
||
|
($scope, $state) ->
|
||
|
$scope.refresh = () ->
|
||
|
$.getJSON('/api/web/playlists/show/' + $state.params.id)
|
||
|
.done (playlist) -> $scope.$apply ->
|
||
|
$scope.playlist = playlist
|
||
|
|
||
|
$scope.refresh()
|
||
|
]
|