I want to show a message on the login component if the user came from a successful registration process. I know that the question "how to pass data from one component to another" is very common But a few times someone know a technique that is very easy and good to apply. The components are not in a parent/child structure, I don't want to use query strings (worst solution in my opinion), preferably I don't want to go throught all the trouble to create a shared service.
Is there some way to do something like:
this.router.navigateByUrl('login', {data_available_only_in_this_request: true})
I am redirecting the user if the registration was successful to the login component and passing some data. Here I am only showing how easy I want things to be.
I am searching an easy way to do this, I think creating a facility only to show a message too much.