107
rated 0 times
[
111]
[
4]
/ answers: 1 / hits: 46207
/ 7 Years ago, tue, july 25, 2017, 12:00:00
I have an UnsavedChangesModal
as a component that needs to be launched when the user tries to leave the page when he has unsaved changes in the input fields (I have three input fields in the page).
components: {
UnsavedChangesModal
},
mounted() {
window.onbeforeunload = '';
},
methods: {
alertChanges() {
}
}
More From » vue.js