app.module.ts
@NgModule({
imports: [ BrowserModule, FormsModule, HttpModule,MyDatePickerModule ],
declarations: [ AppComponent,HeaderComponent,
You have to create one common service which shared between your HeaderComponent
and ContentComponent
and with this service you can communicate between HeaderComponent
and ContentComponent
. Check Component communication via a service documentation and my answer for parent-child or sibling component comunication.
After you have made common service you have to emit the events from HeaderComponent
on select dropdown value change which needs to be already subscribe
by ContentComponent
so that you can perform your functionality based on dropdown value change