Skip to content

changhuixu/prevent-from-leaving

Repository files navigation

Angular Prevent From Leaving

  1. RouteGuard

    This repo provides an example RouteGuard to alert a navigation event.

  2. Close a browser tab/window

    An example Component listens to the window:beforeunload event.