Pony.fm/public/scripts/app/controllers/artist-content.coffee
2013-08-20 21:40:11 -05:00

12 lines
No EOL
408 B
CoffeeScript

window.pfm.preloaders['artist-content'] = [
'artists', '$state'
(artists, $state) ->
$.when.all [artists.fetch($state.params.slug), 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
]