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