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