腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(773)
视频
沙龙
1
回答
Angular
7-
ngForm
,
ngSubmit
-
提交
旧
值
、
我使用的是
Angular
7中的表单,如下所示 <form #payForm="
ngForm
" (
ngSubmit
)="onSubmit(payForm, $event)" method="POST"但是当他最终点击"Pay Now“按钮时,我想从我的
angular
组件向POST URL
提交
表单,所以我使用
ngForm
和(
ngSubmit
)="onSubmit(payForm, $ev
浏览 12
提问于2019-09-14
得票数 0
1
回答
角4输入指令onSave
、
、
例如,我的投入:该指令将其更改为:现在,在将
值
绑定到我的模型之前,我想删除给定的格式,我的问题是: 当
提交
时(通过
提交
按钮),我是否可以在输入指令中触发事件?
浏览 0
提问于2018-05-08
得票数 1
回答已采纳
8
回答
提交
后重置
angular
5中的表单
、
、
、
<form class="form-horizontal" name="form" (
ngSubmit
)="!f.form.invalid && staffDetails(model)" #f="
ngForm
" novalidate> <div class="form-group"><button [disabled]="f.invalid" *ngIf ="buttonSave
浏览 6
提问于2018-07-20
得票数 1
3
回答
Angular
2- Forms -通过
NgForm
对象将
NgForm
.submitted设置为true
、
在
Angular
1 (1.5)中,表单控制器有一个$setSubmitted()方法,允许您以编程方式将.$submitted标志设置为true。我尝试过<formname>.
ngSubmit
.emit(),但它没有将.submitted设置为true。
浏览 0
提问于2017-10-05
得票数 6
1
回答
为什么
ngForm
的submitted属性在submit事件后仍然是false?
、
我想在表单外部触发
提交
,并且我使用
ngForm
的submitted属性作为我的应用程序逻辑。 但是当我
提交
表单时,它会触发onSubmit函数,但submitted仍然是false。 为什么?stackblitz import { Component, VERSION, ViewChild } from "@
angular
/core"; import { FormControl, FormGroup,
NgForm
} from "@
angular
浏览 24
提问于2020-10-17
得票数 1
1
回答
提交
vs
ngSubmit
in
Angular
2
为了在
Angular
2中
提交
表单,我们可以使用表单的" submit“或"
ngSubmit
”事件。<form #frm="
ngForm
" (submit)="add(frm.value)"> ... <
浏览 0
提问于2017-02-03
得票数 44
回答已采纳
2
回答
从角子分量的子分量获取输入
、
、
需要对检测子组件的更改进行一些澄清--例如,我有一个父组件,它包含要
提交
的按钮和父组件内部的按钮,在子组件-1组件中有一个子-1组件,在从父组件单击按钮后,我有包含窗体的子-2组件,每当输入更改时,我需要从子-2组件获取窗体
值
到父组件。
浏览 4
提问于2022-08-24
得票数 -1
9
回答
Angular
2 -从外部验证和
提交
表单
、
我有一个简单的表格,看起来像这样...</form>例如:要么以编程方式
提交
,要么使用位于<button type="submit">标记之外的<form>。
浏览 11
提问于2016-06-27
得票数 70
回答已采纳
1
回答
角5中的格式数据显示console.log()时为空
、
在角5 html中,我执行了以下操作并按下
提交
按钮。在这里,在.ts文件中,我希望附加自定义
值
,然后要控制台/打印
提交
的表单的
值
。<form method="post" (
ngSubmit
)="signupFrm.form.valid && onSubmit(signupFrm)" #signupFrm="
ngForm
"> ...<button type="submit&qu
浏览 0
提问于2019-01-04
得票数 1
回答已采纳
3
回答
angular
2
提交
表单
值
、
我需要获取表单
值
,但是当我在profile-create.ts中console.log我从profile-create.html传递的参数时,我得到了未定义的
值
,并且我需要将表单
值
保存到数据库中。--<md-dialog-content>--> <form class="add-contact-form" #f="
ngForm
" (
ngSubmit
)="submitForm(value)">/core
浏览 0
提问于2017-04-04
得票数 2
4
回答
Angular
2 (
ngSubmit
)不工作
、
、
我刚启动
Angular
2,在我的表单中添加(
ngSubmit
)属性时会遇到以下错误There is no directive with "exportAs" set to "
ngForm
" (" 下面是我在p
浏览 4
提问于2016-12-14
得票数 3
2
回答
未知方法'onSubmit‘角4形式
、
class="card-header"> </div> <form #f="
ngForm
" (
ngSubmit
)="onSubmit(f)" novalidate> <!-- <form #validateForm="
ngForm
" (<
浏览 0
提问于2018-04-14
得票数 1
回答已采纳
4
回答
如何在
提交
后以模型驱动形式清除表单?(角2)
、
在
提交
模型驱动的表单后,我如何清除表单?我必须使用ngModel吗?谢谢 <input type="text" [ngFormControl]="name
浏览 0
提问于2016-02-22
得票数 2
回答已采纳
3
回答
Angular
4从modal获取表单
值
、
我在
提交
表单时遇到了从模式获取表单
值
的问题。日志显示addMountForm未定义。我已经提供了我的html的代码片段以及组件。我将非常感谢你的帮助。<h3 class="modal-title">Add Mount Point</h3> <div class="modal-body"> <form (
ngSubmit
)="onSubmit()" #addMountFor
浏览 2
提问于2017-05-05
得票数 10
2
回答
角
ngForm
不工作在
提交
嗨,伙计们,我正在尝试实现
ngForm
,但它不起作用。html代码:这是我的html页面<input type="textReactiveFormsModule } from '@
angular
/forms'; import { BrowserModule } from '@
浏览 8
提问于2022-08-12
得票数 0
回答已采纳
1
回答
以角形式显示img将给出“无
值
访问器用于具有未指定名称属性的窗体控件”。
、
我在
ngForm
中的图像顶部显示一组图标。在拖动图标时,当表单
提交
时,我保存新的位置。工作正常,但当页面显示时,我会遇到一个恼人的错误。未指定名称属性的窗体控件没有
值
访问器。app.component.html <img #maplocationsloc.mapleft" [style.top.px]=&
浏览 0
提问于2018-12-04
得票数 0
回答已采纳
6
回答
如何在
Angular
2中处理双重
提交
如果我在
提交
按钮上单击fast,表单将被
提交
两次或更多次。
浏览 3
提问于2016-05-10
得票数 21
7
回答
避免
Angular
2在单击按钮时系统地
提交
表单
、
、
、
获取此表单: <input type="text" name="name" [(ngModel)
浏览 0
提问于2016-08-05
得票数 118
2
回答
TS2564:属性'signupForm‘没有初始化程序,并且没有在构造函数中明确分配
、
我使用ViewChild作为角格式
提交
。这是我的密码import { Component, ViewChild } from '@
angular
/core'; selector: 'app-root', console.log(th
浏览 4
提问于2021-03-26
得票数 1
回答已采纳
1
回答
如何在
Angular
中
提交
动态创建的表单
、
我有一个包含许多输入字段的表单,它是通过绑定动态创建的: <form method="post" (
ngSubmit
)="onSubmit()"> <div *button type="submit" class="btn btn-outline-primary">Submit</button> </form> 由于我事
浏览 13
提问于2020-04-15
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Angular 9即将发布:改进Ivy编译和渲染管道
Angular 10正式发布,不再支持 IE9/10!
Web前端:JavaScript前端框架CLI比较
AngularJS中使用表单输入的应用设计
此生无悔入 TypeScript
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
腾讯会议
活动推荐
运营活动
广告
关闭
领券