Pony.fm/resources/assets/scripts/app/directives/albums-list.coffee

14 lines
326 B
CoffeeScript
Raw Normal View History

2015-08-31 17:42:21 +02:00
angular.module('ponyfm').directive 'pfmAlbumsList', () ->
2015-10-25 03:35:37 +01:00
restrict: 'E'
replace: true
templateUrl: '/templates/directives/albums-list.html'
scope:
albums: '=albums',
class: '@class'
2015-08-31 17:42:21 +02:00
2015-10-25 03:35:37 +01:00
controller: [
'$scope', 'auth'
($scope, auth) ->
$scope.auth = auth.data
]