I am a beginner in the world of Angular, and I find the concept of component extension to be quite perplexing. Currently, I have two components - a header and a content component. In my header component, I have a method called filterChange() that needs to call another method in the content component. I have attempted using @Input and @Output, but unfortunately, I am unable to successfully call the methods using these decorators.
Below is an excerpt from my header component's HTML:
<mat-radio-group[(ngModel)]="visibility" (ngModelChange)="filterChange()">
<mat-radio-button [value]=null>true</mat-radio-button>
<mat-radio-button *ngFor="let visibility of jobVisibilities"
[value]="visibility">false</mat-radio-button>
</mat-radio-group>
Here is the implementation of the filterChange() method in the header component TypeScript file:
filterChange(){
}
This is where I currently stand with my code. I have also explored using services, but I am unsure of how to proceed with them in order to achieve the desired functionality. Could someone please provide guidance on how to solve this issue?