Files
coriolis/app/js/controllers/controller-ship.js
Colin McLeod 0d2fd2804f JShint fixes
2015-04-16 20:44:27 -07:00

10 lines
398 B
JavaScript

angular.module('app')
.controller('ShipController', ['$scope', '$routeParams','ShipFactory', 'components', function ($scope, $p, ShipFactory, Components) {
$scope.shipId = $p.ship;
$scope.ship = ShipFactory($scope.shipId, DB.ships[$scope.shipId]);
$scope.availCS = Components.forShip($scope.shipId);
// for debugging
//window.ship = $scope.ship;
//window.availcs = $scope.availCS;
}]);