Netanel Basal

--

--

Angular v14.1.0 added a new property named code to the NavigationCancel event. It contains a code that indicates why the navigation was canceled. The code is an enum with the following options:

NavigationCancellationCode.Redirect — A navigation failed because a guard returned a UrlTree to redirect.

NavigationCancellationCode.SupersededByNewNavigation — A navigation failed…

--

--

Netanel Basal

Netanel Basal

A FrontEnd Tech Lead, blogger, and open source maintainer. The founder of ngneat, husband and father.