mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-23 21:47:59 +01:00
12 lines
No EOL
313 B
CoffeeScript
12 lines
No EOL
313 B
CoffeeScript
window.pfm.preloaders['track'] = [
|
|
'tracks', '$state'
|
|
(tracks, $state) ->
|
|
tracks.fetch $state.params.id
|
|
]
|
|
|
|
angular.module('ponyfm').controller "track", [
|
|
'$scope', 'tracks', '$state'
|
|
($scope, tracks, $state) ->
|
|
tracks.fetch($state.params.id).done (trackResponse) ->
|
|
$scope.track = trackResponse.track
|
|
] |