我正在尝试用NG测试我的应用程序,但我在我的一个组件中使用了angular材料,它们在angular中不被识别为已知元素。我该如何解决这个问题呢?
错误如下:
'mat-form-field' is not a known element:
1. If 'mat-form-field' is an Angular component, then verify that it is part of this module.
2. If 'mat-form-field' is a Web Component then add 'CUSTOM_
我当前使用的是angular 10,我想路由到两个不同的视图,然后出现了这个错误。我想要实现的是,每当我单击某个特定按钮时,它都会显示视图。我为视图创建了两个不同的组件。 core.js:4196 ERROR TypeError: Cannot read property 'viewContainer' of undefined
at MatTable._forceRenderHeaderRows (table.js:1637)
at MatTable.ngAfterContentChecked (table.js:1228)
at callHook
角度材料性能差,内存占用大:
Issue: When added md-input-container to a page, the number of $watchers increased from 6504 to 112507?, by total 17 times more than without the angular material tag* md-input-container和$mdDialog都会导致内存泄漏在Chrome中加载角度材料页面慢4倍,在IE中几乎无法加载。‘预期的行为是什么?期望Angular material应用程序与angular only应用程序执行类
我有一个应用程序调用观察器,由一个组件/服务组成。我有一张简单的桌子,适当地显示空的。
<table mat-table [dataSource]="this.getWatcherTable()" class="mat-elevation-z8">
... my columns and rows are described here
</table>
源链接到我的组件文件。
export class WatcherComponent{
constructor(public watcherS
我最近在我的angular项目中添加了angular材质,但在将@angular/material添加到我的项目后不久,animate.js提供的一些动画就停止工作了。 有没有什么方法可以让animate.js和angular材质一起工作? 控制台错误: Module build failed: Error: ENOENT: no such file or directory, open 'node_modules/zone.js/dist/zone-evergreen.js' 但我确实在那个路径上有那个文件。