If I want my daipilot sheduler to appear dynamically when I press a button, what do I need to do?
Because now I get an error
You can use *ngIf on the <daypilot-scheduler> element:
<daypilot-scheduler [config]="config" [events]="events" #scheduler *ngIf="visible"></daypilot-scheduler>
You can also create the component dynamically using createComponent():