Semaphore/public/js/factories/project.js

14 lines
320 B
JavaScript

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