[英]Start angular animation when a mat-tab is active
我正試圖在標簽內設置一個簡單的div。 選項卡的內容是不同的組件。
父組件:
<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>
我想要實現的是在我點擊特定標簽時動畫app-profile-companies組件中的div。 我不是很確定如何做到這一點,我還在學習,而不是Angular的專家。
我通過為延遲加載添加ng-template並禁用選項卡幻燈片動畫解決了這個問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.