【发布时间】:2021-01-14 09:37:44
【问题描述】:
https://stackblitz.com/github/snehalp29/ng10-material10
我正在尝试使用材料侧导航,但遇到以下问题。
preview-29b0f46fcc27b310236ab.js:1 错误错误:未捕获(承诺):错误:找到合成侦听器@transform.start。请在您的应用程序中包含“BrowserAnimationsModule”或“NoopAnimationsModule”。 错误:找到合成侦听器@transform.start。请在您的应用程序中包含“BrowserAnimationsModule”或“NoopAnimationsModule”。
下面是代码
<mat-sidenav-container class="example-container">
<mat-sidenav mode="side" opened>
Sidenav content
<app-toolbar></app-toolbar>
</mat-sidenav>
<mat-sidenav-content
>Main content
<router-outlet></router-outlet>
</mat-sidenav-content>
</mat-sidenav-container>
【问题讨论】:
-
那么..你添加了那些模块吗..?
-
是的,我已经添加了这些模块
-
我在您的 ContactManagerModule 中没有看到它..?
标签: angular angular-material material-ui