Skip to content

Instantly share code, notes, and snippets.

@eduardoschmidtsantos
Created March 2, 2016 16:56
Show Gist options
  • Save eduardoschmidtsantos/d7ef58d23fb59a1244f5 to your computer and use it in GitHub Desktop.
Save eduardoschmidtsantos/d7ef58d23fb59a1244f5 to your computer and use it in GitHub Desktop.
ex service
(function() {
'use strict';
angular
.module('dashboardWeb')
.factory('DashboardService', DashboardService);
/** @ngInject */
function DashboardService($resource) {
return $resource('/conformit/api/v1/oversights/:widget/:id', {id: "@id"}, {
getNotificationWidget:{
method: 'GET',
params: {widget: 'notification'}
}
});
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment