Initial commit
This commit is contained in:
16
app/js/student/student.services.js
Normal file
16
app/js/student/student.services.js
Normal file
@@ -0,0 +1,16 @@
|
||||
(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'}
|
||||
});
|
||||
};
|
||||
})();
|
Reference in New Issue
Block a user