1. 21
    Notify user about unsaved data when leaving a component using the Angular Router
    3m 59s

Notify user about unsaved data when leaving a component using the Angular Router

Share this video with your friends

Send Tweet

Sometimes we want to be able to prevent the user from navigating away from a given screen. Especially if some data has been modified but not yet saved. The CanDeactivate guard allows us to do exactly this. In this lesson we will take a closer look by implementing one by ourselves.