-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlbumCtrl.js
More file actions
41 lines (38 loc) · 970 Bytes
/
AlbumCtrl.js
File metadata and controls
41 lines (38 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
(function() {
var albumPicasso = {
title: 'The Colors',
artist: 'Pablo Picasso',
label: 'Cubism',
year: '1881',
albumArtUrl: 'assets/images/album_covers/01.png',
songs: [{
title: 'Blue',
duration: 161.71,
audioUrl: 'assets/music/bloc_jams_music/blue'
}, {
title: 'Green',
duration: 103.96,
audioUrl: 'assets/music/bloc_jams_music/green'
}, {
title: 'Red',
duration: 268.45,
audioUrl: 'assets/music/bloc_jams_music/red'
}, {
title: 'Pink',
duration: 153.14,
audioUrl: 'assets/music/bloc_jams_music/pink'
}, {
title: 'Magenta',
duration: 374.22,
audioUrl: 'assets/music/bloc_jams_music/magenta'
}]
};
function fixtureService() {
this.getAlbumData = function(){
return albumPicasso;
};
}
angular
.module('myApp')
.service('fixtureService', fixtureService);
})();