我不知道如何让我的数据在FormComponent中通过onSubmit()发布,这样它就会出现在我的表中,你可以在UsersComponent的截图中看到。我在这方面还是个新手,但我觉得我已经很接近了。谁能指出我做错了什么。OnSubmit当前抛出以下错误:
Supplied parameters do not match any signature of call target.
FormComponent
import { Component, OnInit } from '@angular/core';
import {UserService} from '
我正在做响应式表单验证,我发现这个*ngIf在检查有效的电子邮件模式时有一个bug。当我们写了一封无效的电子邮件并在输入之外单击*ngIf for pattern check时,即使输入是有效的,也会始终返回。请查看演示视频。 Here's the Video of the bug please check .html <form name="form" [formGroup]="form">
<div class="form-group" [ngClass]="{'has-danger'
,因为我是一个新的引导,并试图建立一个反馈形式。一切正常,但填充所有字段后,“发送消息”按钮不启用。我试过很多次了,但我犯了一些错误,但我没有得到。甚至我也尝试过只在我的表单中使用FullName字段,但是即使出现了相同的错误。请帮助我解决这个小问题。
<div class="container"><br>
<div class="row">
<div class="col-lg-9 mb-4">
<h3>Give Us Your Va