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:
@@ -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;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user