// web service proxy for role webservices.factory('exportService', ['$http', 'apiConfig', function ($http, apiConfig) { 'use strict'; return { exportJsonData: function (exportData) { return $http.post('/export/jsonData', exportData, apiConfig.create()); } }; }]);