Backbone.js computed properties
A simple yet powerful way to create backbone model calculated fields or “macros”
For one of our applications, we needed a way to store “macros” in backbone models, that will return a calculated value, based on values we have in the model fields. I came up with a quick solution that seems to be good enough so far.
the concept is, the same way you…