on-property-change
on-property-change copied to clipboard
A Typescript decorator to watch class properties changes
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. Changelog Sourced from y18n's changelog. Change Log All notable changes to this project will be documented in this file. See standard-version for commit guidelines....
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. Commits 6370e90 Mark version 5.7.4 fbc15b1 More rigorously check surrogate pairs in regexp validator See full diff in compare view [](https://help.github.com/articles/configuring-automated-security-fixes) Dependabot...
Add a possibility to start watching property when the component is initialised, or view rendered, etc. We can reach it by extending the decorator config like this ``` @OnPropertyChange('propName', {...
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:...