fullcube / loopback-ds-calculated-mixin

A mixin to enable calculated (persisted) properties for loopback Models
MIT License
13 stars 3 forks source link

difference with loopback-ds-computed-mixin? #1

Closed josx closed 8 years ago

josx commented 9 years ago

Is there any difference with https://github.com/fullcube/loopback-ds-computed-mixin/ ?

mrfelton commented 8 years ago

@josx The difference is that calculated properties are calculated and stored with the object when a model instance is first created. Computed properties are dynamically computed every time a model instance is loaded.

josx commented 8 years ago

@mrfelton Thanks for explain it!