Improves album directives
This commit is contained in:
@@ -6,7 +6,7 @@ directives.directive('album', function() {
|
||||
id: '=albumId'
|
||||
},
|
||||
templateUrl: 'js/directives/album.html',
|
||||
restrict: 'A',
|
||||
restrict: 'E',
|
||||
controller: 'AlbumCtrl'
|
||||
};
|
||||
});
|
||||
@@ -15,8 +15,7 @@ directives.controller('AlbumCtrl', function($scope,$http,$log,albumService) {
|
||||
albumService.get($scope.id)
|
||||
.then(function(data) {
|
||||
$scope.album = data;
|
||||
$log.info('Got : ' + data.ID);
|
||||
}, function(err) {
|
||||
$log.error('Got error :' + err);
|
||||
$log.error('Could not fetch album' + $scope.id + ' :' + err);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user