Encapsulate DB.js in angular constants to help testing

This commit is contained in:
Colin McLeod
2015-05-04 21:54:36 -07:00
parent c297bb6e8e
commit bf04a2cc19
8 changed files with 14 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
angular.module('app').controller('ShipyardController', ['$rootScope', function ($rootScope) {
angular.module('app').controller('ShipyardController', ['$rootScope', 'ShipsDB', function ($rootScope, ships) {
$rootScope.title = 'Coriolis';
$rootScope.bodyClass = 'docking-bay';
$rootScope.ships = ships;
}]);