Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ACME.factory('AttributeService', ['$http', function($http) {
- var AttributeService = {} ;
- AttributeService.listAttribute = function(id,model) {
- return $http.post(
- '/admin/attributes/service_list',
- {
- model: model,
- id: id
- }
- );
- };
- AttributeService.removeAttribute = function(id,model) {
- return $http.post(
- '/admin/attributes/service_remove',
- {
- model: model,
- id: id
- }
- );
- };
- return AttributeService;
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement