
(example from github wiki page editing)
I suppose we have an application based on Polymer Starter Kit (so with page.js as router engine)
- this application uses a product-editor element which contains a textbox + save button.
- User is editing a product at the route localhost/#!/product/127/edit
- and "accidently" click on the Back button or other links on the page
I'd like to display the above confirmation dialog: "Are you sure you want to leave this page?"
How can we do this?
Thank you
--
/=================================================/
DUONG Phu Hiep
Tel:
+33 6 68 19 61 34/=================================================/