mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-23 21:47:59 +01:00
13 lines
No EOL
299 B
CoffeeScript
13 lines
No EOL
299 B
CoffeeScript
angular.module('ponyfm').directive 'pfmTrackPlayer', () ->
|
|
restrict: 'E'
|
|
templateUrl: '/templates/directives/track-player.html'
|
|
scope:
|
|
track: '=track',
|
|
class: '@class'
|
|
|
|
controller: [
|
|
'$scope', 'player'
|
|
($scope, player) ->
|
|
$scope.play = () ->
|
|
player.playTracks [$scope.track], 0
|
|
] |