1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-29 02:12:59 +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;
});
}
};
});