UNPKG

cobuild-angular-stack

Version:

Base stack angular sass jade gulp

17 lines (16 loc) 689 B
(function (module) { module.factory('CustomOrderCount', ['UnikoService', '$http', function (UnikoService, $http) { var orderCount = new UnikoService('orders'); orderCount.count = function () { return $http.post(this.resourceUrl + '/customCount'); }; return orderCount; }]); module.factory('CustomCouplesCount', ['UnikoService', '$http', function (UnikoService, $http) { var coupleCount = new UnikoService('coupleAccounts'); coupleCount.count = function () { return $http.get(this.resourceUrl + '/count?where[tempAccount]=false'); }; return coupleCount; }]); })(angular.module('uniko'));