You can try this workaround solution-
1. Create a context/value node inomponent controller of both comp1 and comp2 for the STATE identifier. This can be bound in method WD_USAGE_INITIALIZE of component controller of comp 1
2. In the outbound plug while navigating, you can set this STATE identifier context
3 In the comp2, in mehod do_replace_initial_view, you can access the value of this STATE identifier and based on that dynamically replace the view using the CASE statement or so.
Regards,
Rupali