mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-24 05:57:59 +01:00
12 lines
No EOL
414 B
CoffeeScript
12 lines
No EOL
414 B
CoffeeScript
window.pfm.preloaders['artist-content'] = [
|
|
'artists', '$state'
|
|
(artists, $state) ->
|
|
$.when.all [artists.fetch($state.params.slug, true), artists.fetchContent($state.params.slug, true)]
|
|
]
|
|
|
|
angular.module('ponyfm').controller "artist-content", [
|
|
'$scope', 'artists', '$state'
|
|
($scope, artists, $state) ->
|
|
artists.fetchContent($state.params.slug).done (artistResponse) ->
|
|
$scope.content = artistResponse
|
|
] |