ng-polymer-elements
ng-polymer-elements copied to clipboard
Make angular dirty checking work
Dirty checking is currently not working. This PR attaches global event listeners to the document which are triggered before any model values are changed and saves the current interaction element. If a value change later occurs on the same element, the $dirty flag is set.
(Simply adding an event listener directly to elements does not work because the value change happens before the event is triggered.)