我在这方面见过很多问题,但似乎不是我遇到的同一个问题。我刚刚创建了我的第二个角度项目。我在src/app/employees下有一个新组件,我正在尝试在employees.component.html中使用它。我得到的错误是:
Uncaught Error: Template parse errors:
'mat-card' is not a known element:
1. If 'mat-card' is an Angular component, then verify that it is part of this module.
2. If '
拜托,我对角很陌生。我遵循了一个教程,我得到了这个错误。我检查过其他人的错误和解决方案。没有人救了我。
compiler.js:215 Uncaught Error: Template parse errors:
'mat-spinner' is not a known element:
1. If 'mat-spinner' is an Angular component, then verify that it is part of
this module.
2. If 'mat-spinner' is a Web Compo
作为一个初级开发人员,我正在使用Angular 12编写一个简单的测验应用程序来提高我的技能。我在从JSON文件中恢复带有问题和答案的数据时遇到了问题。它编译成功,但在web浏览器中,我没有得到任何结果,并且得到了这样的错误: NG0303: Can't bind to 'ngForFrom' since it isn't a known property of 'div'
NG0303: Can't bind to 'ngForFrom' since it isn't a known property of &
我正在尝试编写Jasmine单元测试,但是当我运行ng test时,终端会因为错误而变得疯狂 示例错误 1. If 'mat-radio-group' is an Angular component, then verify that it is part of this module.
2. If 'mat-radio-group' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this c
我正在尝试将对象推送到matcards中显示,在angular.So中,每个输入都有一张包含这三个字段的卡片。到目前为止,我得到的是不起作用的:我收到一个错误,显示为this.inputField.push is not a function at PostsComponent.getInput
我的Html:
<input type="text" placeholder="Your name" name="name" id="inputField1" [(ngModel)]="inputField.