In Angular 8, I usually pass data between parent and child component on the specification in HTML file as below
<div id ="parent-container">
<child-button
[ngClass]="child-button"
[attr.id]="child-button"
[setOption]="options"
(notifyChild)="notifyChildButton"
(notifyParent)="changeNotifyParent($event)"
>
</child-button>
</div>
However, if I would like to do this custom child-button view in appending from the code something like below
const parentContainer = document.getElementById('parent-container');
const childButton = document.createElement('child-button');
childButton.setAttribute('class', 'child-button');
childButton.id = 'childButton';
parentContainer.appendChild(childButton0;
then how should I put '[setOption]', '(notifyChild)', and '(notifyParent)' in coding in order to passing data between parent and child component?