2 'app/gbp/contract/contract.service',
3 'app/gbp/contract/contract-list.service',
7 angular.module('app.gbp').controller('ContractController', ContractController);
9 ContractController.$inject = ['$scope', 'TenantService', 'ContractService', 'ContractListService'];
11 function ContractController($scope, TenantService, ContractService, ContractListService) {
12 $scope.tenant = TenantService.createObject();
13 $scope.tenant.get('tenant1');
14 console.log('tenant from CONTRACT CTRL:', $scope.tenant);
16 $scope.contract = ContractService.createObject();
17 $scope.contract.get('contract1');
18 console.log('contract from CONTRACT CTRL', $scope.contract);
20 $scope.contracts = ContractListService.createList();
21 $scope.contracts.get('config');
22 console.log('contracts from CONTRACT CTRL', $scope.contracts);