I'm pretty new to BackboneJS, looking for some help in the defaulting an attribute based on a condition How can I default name to TEST based on a condition that is only if model.attribute = 'xyz' in Backbone models.
defaults: function() {
return {
name: 'TEST'
}
}
Thanks