mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-30 16:47:59 +01:00
12 lines
423 B
CoffeeScript
12 lines
423 B
CoffeeScript
|
window.pfm.preloaders['artist-favourites'] = [
|
||
|
'artists', '$state'
|
||
|
(artists, $state) ->
|
||
|
$.when.all [artists.fetch($state.params.slug), artists.fetchFavourites($state.params.slug, true)]
|
||
|
]
|
||
|
|
||
|
angular.module('ponyfm').controller "artist-favourites", [
|
||
|
'$scope', 'artists', '$state'
|
||
|
($scope, artists, $state) ->
|
||
|
artists.fetchFavourites($state.params.slug).done (artistResponse) ->
|
||
|
$scope.favourites = artistResponse
|
||
|
]
|