Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ranwahle/25f0b64f6ff7f797f650b312b96c5e7d to your computer and use it in GitHub Desktop.
Save ranwahle/25f0b64f6ff7f797f650b312b96c5e7d to your computer and use it in GitHub Desktop.
Route configuration - DeactivateGuard
{
path: '/addImage',
element: 'div',
attributes: {is: 'add-image'},
deactivateGuard: confirmExit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment