Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Javascript watch changes and make log

How can I create an log with all the model changes in angular? I know that I can use the $watch service, but I want to build a list like this:

  • Changed name from 'test' to 'test2'
  • Changed status from 'new' to 'inprogress'

And not all actual changes what the $watch service me gives. Is there a kind of module for this which I can use? Or can I accept the changes once the user is done typing (in case of an text field) or select an different option from an select/radio/checkbox?

If this is not a good practice in Angular, using Node.JS is also an possibility for me.

Comments