I'm trying to create a model with AngularJS the way Backbone has the capability of doing it:
User = Backbone.Model.extend({
defaults: function() {
return {
"name": "finding name...",
"id" : "",
"age" : "",
"gender" : ""
};
};
So I can later do something like var user = new User();
I found this backbone-style models in angularjs? and I'm just trying to verify that there's no way of doing the above but through a factory?