Files
MASA/app/js/student/student.services.js
Reynaldo Reyes 90d22e3405 Initial commit
2016-02-29 00:49:18 -04:30

16 lines
420 B
JavaScript

(function(){
'use strict';
angular
.module('app.student')
.factory('students', students)
.value('estudianteSeleccionado',{});
students.$inject = ['$resource','$rootScope'];
function students($resource, $rootScope){
return $resource('http://'+$rootScope.domainUrl+'/students/:id', null,
{
'update': {method:'PUT'}
});
};
})();