Advertisement
Guest User

Rudy

a guest
Apr 26th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ACME.factory('AttributeService', ['$http', function($http) {
  2.    
  3.     var AttributeService = {} ;    
  4.    
  5.     AttributeService.listAttribute = function(id,model) {
  6.        
  7.         return $http.post(
  8.         '/admin/attributes/service_list',
  9.         {
  10.             model: model,
  11.             id:  id
  12.         }
  13.         );
  14.     };
  15.    
  16.     AttributeService.removeAttribute = function(id,model) {
  17.        
  18.         return $http.post(
  19.         '/admin/attributes/service_remove',
  20.         {
  21.             model: model,
  22.             id:  id
  23.         }
  24.         );
  25.     };
  26.    
  27.     return AttributeService;
  28. }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement