I have parent component id="componentOne" where is included another child component <app-buttons>:
<div id="componentOne">
<app-buttons
[component]="'WeeklyScheduleComponent'"
[buttonTypes]="['add', 'filter']"
[position]="'right-bottom'"
></app-buttons>
</div>
Inside component app-buttons there is:
ngOnInit() {
this.buttonUsage = new ButtonUsage(this.component, this.buttonTypes);
}
So, how to get access to this.buttonUsage from parent component after initialization this.buttonUsage = new ButtonUsage?