1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Removed console.log on frontend tournamentsController, also fixed frontend syntax errors in tournamentsController and tournamentsService

This commit is contained in:
2016-03-02 15:54:38 +00:00
parent 9bd36d2cb0
commit 85f9346001
3 changed files with 2 additions and 5 deletions

View File

@@ -4,18 +4,15 @@ app.controller("tournamentsController", function($scope, tournamentsService) {
tournamentsService.getAllTournaments().then(function(data) {
//this will execute when the
//AJAX call completes.
console.log(data);
$scope.allTournaments = data;
});
$scope.searchTournaments = function (){
console.log("Tried search");
tournamentsService.searchTournaments($scope.searchTerms).then(function(data) {
//this will execute when the
//AJAX call completes.
console.log(data);
$scope.allTournaments = data;
});
}
};
});

View File

@@ -22,7 +22,7 @@ app.factory('tournamentsService', function($http){
}).then(function successCallback(response) {
// this callback will be called asynchronously
// when the response is available
return response.data
return response.data;
}, function errorCallback(response) {
// called asynchronously if an error occurs
// or server returns response with an error status.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB