I'm trying to animate a simple div inside a tab. The content of a tab is a different component.
Parent component:
<div class="content p-24">
<mat-tab-group dynamicHeight="true">
<mat-tab label="Info">
<app-profile-editor *ngIf="editProfile" [user]= "user"></app-profile-editor>
<app-profile-viewer *ngIf="!editProfile" [user]= "user"></app-profile-viewer>
</mat-tab>
<mat-tab label="Companies">
<app-profile-companies></app-profile-companies>
</mat-tab>
<mat-tab label="People">
</mat-tab>
</mat-tab-group>
What i want to achieve is animating a div in the app-profile-companies component when I click on that specific tab. I am not really sure how to do this, I'm also still learning and not that expert with Angular yet.