Semaphore/public/js/factories/project.js

14 lines
320 B
JavaScript
Raw Normal View History

2016-04-02 14:40:07 +02:00
app.factory('ProjectFactory', ['$http', function ($http) {
var Project = function (project) {
this.id = project.id;
this.name = project.name;
2017-03-10 07:25:42 +01:00
this.alert = project.alert;
this.alert_chat = project.alert_chat;
2016-04-02 14:40:07 +02:00
}
Project.prototype.getURL = function () {
return '/project/' + this.id;
}
return Project;
}]);