Detect unsaved changes and alert user using angularjs

前端 未结 7 1666
执念已碎
执念已碎 2020-11-29 18:50

Below is the code so far

    


    

        
7条回答
  •  执笔经年
    2020-11-29 19:46

    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)

提交回复
热议问题