concept CanDeactivate guard in category angular

appears as: CDeactivate guard
Angular Development with Typescript, Second Edition

This is an excerpt from Manning's book Angular Development with Typescript, Second Edition.

If the user entered any value in the input field—if (component.name.dirty)—you’ll show a pop-up window with a warning. You need to make a couple more additions to the app from the previous section. First, add the CanDeactivate guard to the routes configuration.