Answer the question
In order to leave comments, you need to log in
Correct approach to organizing data output from the server in Angular?
Hello.
An Angular app has a Brief model:
angular.module('Application').factory('Model', function(){
function Model(){
this.id = '';
this.title = '';
this.description = '';
this.coverImage = '';
this.status = '_public';
this.skills = [];
this.category = [];
this.budgetFrom = 1;
this.budgetTo = 1;
this.firstReview = new Date();
this.deadline = new Date();
}
return Model;
});
Answer the question
In order to leave comments, you need to log in
Extend the Model with "canFinish", "canContest" properties and don't sweat your brain
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question