I have two components in Angular, but they are at the same level of routing. I mean they are in the root.
{
path: '', component: HomeComponent
},
{
path: '', component: SearchComponent
},
But the searchComponent should load if the root has query params like "www.root.com/?name=andrea" and the homeComponent shoud load if the root is clean "www.root.com"
How can I handle this?
Thank you so much