1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-02 04:35:26 +00:00
Files
wrestlingdev.com/frontend/app/js/controllers/tournament-controller.js

15 lines
438 B
JavaScript

'use strict';
app.controller("tournamentController", function($scope, tournamentsService, $routeParams, Wrestler) {
$scope.message = "Test message in scope.";
// $scope.tournamentData = "test";
tournamentsService.tournamentDetails($routeParams.id).then(function(data) {
//this will execute when the
//AJAX call completes.
$scope.tournament = data;
});
$scope.wrestler = Wrestler;
});