Defines the events that the Router can emit.
Router
Emitted when the route changes successfully. The value property contains the new URL path.
value
Emitted when a route is not found (404 error). The code is 404 and message describes the error.
code
message
Defines the events that the
Routercan emit.