Semaphore/public/js/factories/project.js
Matej Kramny 79a05b389f Project ui, ws
- [wip] ws support
2016-04-02 13:40:07 +01:00

12 lines
250 B
JavaScript

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