Files
old-wiaas-legacy/api-wiaas/client/js/components/orders/orders-details.directive.js
2018-06-11 11:09:35 +02:00

19 lines
650 B
JavaScript

(function () {
global.dashModule
.controller('ordersDetailsCtrl', ['$scope', 'utilsService', 'ordersUtilsService', ordersDetailsCtrl])
.directive('ordersDetails', [ordersDetailsDirective]);
function ordersDetailsDirective() {
return {
restrict: 'E',
templateUrl: 'orders/html/ordersDetailsTemplate'
};
}
function ordersDetailsCtrl($scope, utilsService, ordersUtilsService) {
$scope.getStatusIcon = utilsService.getStatusIcon;
$scope.hasAgreement = ordersUtilsService.hasAgreement;
$scope.calculatePrice = ordersUtilsService.calculatePrice;
}
})();