initial contracts work
[groupbasedpolicy.git] / groupbasedpolicy-ui / module / src / main / resources / gbp / contract / contract.controller.js
1 define([
2     'app/gbp/contract/contract.service',
3     'app/gbp/contract/contract-list.service',
4 ], function () {
5     'use strict';
6
7     angular.module('app.gbp').controller('ContractController', ContractController);
8
9     ContractController.$inject = ['$scope', 'TenantService', 'ContractService', 'ContractListService'];
10
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);
15
16         $scope.contract = ContractService.createObject();
17         $scope.contract.get('contract1');
18         console.log('contract from CONTRACT CTRL', $scope.contract);
19
20         $scope.contracts = ContractListService.createList();
21         $scope.contracts.get('config');
22         console.log('contracts from CONTRACT CTRL', $scope.contracts);
23
24     }
25 });