Pony.fm/public/scripts/app/directives/track-player.coffee
nelsonlaquet d349fa1e6e Things
2013-08-15 18:49:20 -05:00

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
]