I want to call showmodel(displayType) from another compoent.How to call header component function to another component?
showmodel(displayType)
header.compoent.ts
make use of viewChild in your parent component.
in your app component -
@ViewChild(HeaderComponent) headerComponent : HeaderComponent;
then use
headerComponent.headerMethodName();
any method from HeaderComponent you want to invoke.