Pony.fm/public/scripts/app/controllers/artist-content.coffee

13 lines
413 B
CoffeeScript
Raw Normal View History

2013-08-01 04:47:21 +02:00
window.pfm.preloaders['artist-content'] = [
'artists', '$state'
(artists, $state) ->
2013-08-21 04:40:11 +02:00
$.when.all [artists.fetch($state.params.slug), artists.fetchContent($state.params.slug, true)]
2013-08-01 04:47:21 +02:00
]
angular.module('ponyfm').controller "artist-content", [
'$scope', 'artists', '$state'
($scope, artists, $state) ->
2013-09-01 23:54:33 +02:00
artists.fetchContent($state.params.slug)
.done (artistResponse) ->
$scope.content = artistResponse
2013-08-01 04:47:21 +02:00
]