Solution 2: Shared service (recommended for complex applications)
Subject or BehaviorSubject is a cleaner solution for decoupled communication. The service will hold an observable that other components can subscribe to.
app-newhire-header-details)In
newhire-header-details.component.ts, inject the service and call its sendDropdownValue() method.app-personal-tab)In
personal-tab.component.ts, inject the service and subscribe to the observable to get the latest value.