on-property-change
on-property-change copied to clipboard
Keep multiple entries in history
It might be useful to have a possibility to have more than just previous value.
The decorator parameters could look like
@OnPropertyChange('propName', { history: true })
// {..., previousValue: '', firstChange: false }
@OnPropertyChange('propName', { history: 5 })
// {..., previousValues: [...], firstChange: false }