angularjs - How to Check for unsaved changes when switching nested views in a same Page? -
when switch between 1 state state here able check unsaved changes
, can ask user conformation before moving 1 page in same view have multiple forms in if switch between 1 form form first i have to give message user sure u want leave page without saving data can move form how can this.
example of multiple forms in same view below have metioned
<div ng-switch-when="formtab"> <div ng-include="'/views/tmpl/workform.html'"></div> </div> <div ng-switch-when="efforttab"> <div ng-include="'/views/tmpl/workeffort.html'"></div> </div>
in above example while moving formtab efforttab need show unsaved changes message
Comments
Post a Comment