imports: [ BrowserModule, BrowserAnimationsModule, ],
如果你已经正确添加,可能因为直接在material2 控件上写了动画转台,可以在material2组件上嵌套一个div,如下:
<div [@shrinkInOut]="'in'" *ngIf="isDetailClick==='active'"> <app-category-filter></app-category-filter> </div>
imports: [ BrowserModule, BrowserAnimationsModule, ],
如果你已经正确添加,可能因为直接在material2 控件上写了动画转台,可以在material2组件上嵌套一个div,如下:
<div [@shrinkInOut]="'in'" *ngIf="isDetailClick==='active'"> <app-category-filter></app-category-filter> </div>