cobuild-angular-stack
Version:
Base stack angular sass jade gulp
13 lines (11 loc) • 453 B
JavaScript
(function (module) {
module.factory('CustomCouple', ['UnikoService', '$http', function (UnikoService, $http) {
var coupleAccount = new UnikoService('coupleAccounts');
coupleAccount.giveAdminGift = function (idCouple,value) {
return $http.post(this.resourceUrl + '/'+idCouple+'/giveAdminGift', {
value : value
});
};
return coupleAccount;
}]);
})(angular.module('uniko'));