{"size": 1933, "ext": "js", "max_stars_repo_path": "src/RobotArmy/wwwroot/js/controllers/home.js", "max_stars_repo_name": "Phil-Wheeler/robotarmy", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/RobotArmy/wwwroot/js/controllers/home.js", "max_issues_repo_name": "Phil-Wheeler/robotarmy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/RobotArmy/wwwroot/js/controllers/home.js", "max_forks_repo_name": "Phil-Wheeler/robotarmy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 39.4489795918, "max_line_length": 119, "alphanum_fraction": 0.498189343}
/// <reference path="../services/robot.ts" />
var Controllers;
(function (Controllers) {
    'use strict';
    var Home = (function () {
        function Home($scope, robotService) {
            $scope.vm = this;
            console.info("In Game Controller");
            //$scope.newCategory = new Models.Category(Utility.GuidBuilder.New(), '', '');
            $scope.robots = [];
            $scope.exercies = [];
            $scope.Army = {};
            //$scope.newNomination = new Models.Nomination(Utility.GuidBuilder.New(), '', null, '', new Date(), false);
            //this.location = $location;
            robotService = robotService;
            $scope.hideSelected = true;
            robotService.armies().then(function (g) {
                $scope.games = g;
            });
            $scope.get = function (id) {
                $scope.Army = robotService.get(id);
                $scope.hideSelected = false;
                console.info($scope.Army);
                return $scope.Army;
            };
            //nominationService.get().then((noms: Array<Models.Nomination>) => {
            //    $scope.nominations = noms;
            //});
            //nominationService.getCategories().then((cats: Array<Models.Category>) => {
            //    $scope.categories = cats;
            //    console.info($scope.categories);
            //});
            //$scope.nominate = function () {
            //    var nominee = $scope.newNomination;
            //    gameService.addNomination(nominee);
            //};
            //$scope.addCategory = function () {
            //    var model = $scope.newCategory;
            //    var result = gameService.addCategory(model);
            //};
        }
        Home.$inject = [
            Utility.Angular.$scope, Utility.Services.robotService
        ];
        return Home;
    }());
    Controllers.Home = Home;
})(Controllers || (Controllers = {}));
