Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

update the comment style #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 23 additions & 22 deletions public/js/Tunes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,28 @@

var tunesApp = angular.module('tunesApp', []);

// // app with fake backend (uncoment if you want to use it)
// var tunesAppFake = angular.module('tunesAppFake', ['tunesApp', 'ngMockE2E']);
// tunesAppFake.run(function($httpBackend) {
// $httpBackend.whenGET(/templates\/.*/).passThrough();
// $httpBackend.whenGET('albums.json').respond([
// {
// "title": "test album",
// "artist": "test artist",
// "tracks": [
// {
// "title": "test track 1",
// "url": "music/blue.mp3"
// },
// {
// "title": "test track 2",
// "url": "music/jazz.mp3"
// }
// ]
// }
// ]);
// });
/* app with fake backend (turn /* into //* to enable it)
var tunesAppFake = angular.module('tunesAppFake', ['tunesApp', 'ngMockE2E']);
tunesAppFake.run(function($httpBackend) {
$httpBackend.whenGET(/templates\/.*$/).passThrough();
$httpBackend.whenGET('albums.json').respond([
{
"title": "test album",
"artist": "test artist",
"tracks": [
{
"title": "test track 1",
"url": "music/blue.mp3"
},
{
"title": "test track 2",
"url": "music/jazz.mp3"
}
]
}
]);
});
// */

window.TunesCtrl = function($scope, $http, player) {
$scope.player = player;
Expand Down Expand Up @@ -126,4 +127,4 @@
return audio;
});

})(window);
})(window);