I’m trying to add a modal to ask if you want to save unsaved changes when you try to navigate to another page.
I see there is an “app:guard” event, which is great, but I am wondering if there is a way to set a global flag.
I want to set a property on the JetApp instance from a view and use it in the “app:guard” event handler.