March 2017
Intermediate to advanced
118 pages
2h 1m
English
Every navigation will either succeed, will be cancelled, or will error. There are two ways to observe this.
The router.events observable will emit:
NavigationStart
when navigation stars
NavigationEnd
when navigation succeeds
NavigationCancel
when navigation is canceled
NavigationError
when navigation failsAll of them contain the id property we can use to group the events associated with a particular navigation.
If we call
router.navigate
or
router.navigateByUrl
directly, we will get a promise that:
Navigation fails when the router cannot match the URL or an exception ...
Read now
Unlock full access