I have component/dialog where I am going dynamically add/remove components. Also I do have animation on enter/leave so when component is removed and new component added I want to animate slide in slide out. But inside of MatDialog is not working.
I thought issue is with animation but when I am inserting my component, which I am showing in dialog, to any other place which is rendered with Mat Dialog it works.
<mat-dialog-content>
<div [@swapComponent]="getStatus()"
(@swapComponent.start)="animationStart($event)" (@swapComponent.done)="animationDone($event)"
style="display:block">
<ng-template #container>
</ng-template>
</div>
</mat-dialog-content>
on start and done i am printing to console, and those events are called even animation is not working.
I am using @angular/material 6.3.0