Below is the code so far
Maybe it will be helpful for someone. https://github.com/umbrella-web/Angular-unsavedChanges
Using this service you can listen unsaved changes for any object in the scope (not only the form)