ofAction
: triggers when any of the below lifecycle events happenofActionDispatched
: triggers when an action has been dispatchedofActionSuccessful
: triggers when an action has been completed successfullyofActionCanceled
: triggers when an action has been canceledofActionErrored
: triggers when an action has caused an error to be thrownofActionCompleted
: triggers when an action has been completed whether it was successful or not (returns completion summary)action
in the observable except for the ofActionCompleted
pipe which returns some summary information for the completed action. This summary is an object with the following interface:RouteNavigate
actions and then tells the router to navigate to that route.RouteHandler
somewhere in your application for DI to hook things up. If you want it to happen on application startup, Angular provides a method for doing this: