📜  响应式表单获取控制值 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:21.754000             🧑  作者: Mango

代码示例1
/*-----Angular reactive forms-----*/
// declare a form with properties i.e. name
this.form = this.formBuilder.group({
    name: ['', Validators.required]
});
// Get value
this.form.get('name').value