javascript - Animate.css 动画 fadeInDown 在添加 @angular/material 后停止工作
问题描述
我最近在我的 Angular 项目中添加了 Angular 材质,但是在我的项目中添加了 @angular/material 后不久,animate.js 提供的一些动画就停止了工作。
有什么方法可以让 animate.js 和 angular material 一起工作。
控制台错误:
Module build failed: Error: ENOENT: no such file or directory, open 'node_modules/zone.js/dist/zone-evergreen.js'
但我确实在那个路径上有那个文件。
解决方案
我认为这会有所帮助:(为了在冲突区域禁用角度材质动画)
-NoopAnimationsModule
改为BrowserAnimationsModule
禁用所有动画
-@HostBinding('@.disabled') private disabled = true;
用于禁用组件动画
-<mat-checkbox @.disabled></mat-checkbox>
用于禁用材质组件(使用指令)
推荐阅读
- r - 错误:美学必须是长度 1 或与数据 (1) 相同:x 和 y
- java - 如何检测资产是否在android中发生了变化
- python - 如何在正则表达式中查找所有重叠匹配
- ruby-on-rails - 神社衍生插件方法:image_derivatives!数组的错误未定义方法'bytesize'
- excel - Range.Find 和 With 冻结 Excel
- android - 如何一次发送非常重要数量的推送通知(Android)
- c# - 即使在获得应用程序权限后,“DownloadFile”也无法在 Android(版本 10)中运行
- java - 用户在订单中的relashship
- html - 如何拥有大于“h1”的标题?
- python - 有没有一种在 Python 中快速查找匹配列表的方法?