Semaphore/public/js/factories/project.js
2017-03-10 16:25:42 +10:00

13 lines
280 B
JavaScript

app.factory('ProjectFactory', ['$http', function ($http) {
var Project = function (project) {
this.id = project.id;
this.name = project.name;
this.alert = project.alert;
}
Project.prototype.getURL = function () {
return '/project/' + this.id;
}
return Project;
}]);