I want to call showmodel(displayType) from another compoent.How to call header component function to another component?
showmodel(displayType)
header.compoent.ts
just use this code: in your component
@ViewChild(HeaderComponent, { static: true }) headerComponent: HeaderComponent;
and then use:
this.headerComponent.anyheaderMethod();
this will help definitly