Hello fellow Angular developers, I'm currently working on creating reusable and composable components similar to Material's mat-form-field. My goal is to have a main component containing predefined components that can interact internally.
Here is what I am aiming for:
1)
<app-settings [formControl]="settingsForm" [options]="options">
<app-text-settings />
</app-settings>
2)
<app-settings [formControl]="settingsForm" [options]="options">
<app-video-settings />
</app-settings>
The app-settings component will include the shared logic and components inside it will extend this base class by adding their own functionality. These components should be able to communicate with each other without using input and outputs, much like how mat-form-field can contain various form controls.
I haven't been able to find much information on this topic. Do you know of any good resources that explain this concept? Also, is there a specific name for this design pattern?