Skip to content

Support emitEvent option in FormGroup and FormArray APIs #20439

@bitworking

Description

@bitworking

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

I have a dynamic (reactive) form and use methods like setControl and addControl. If I use these methods everytime a form valueChanges event is triggered which in my situation is very bad because I cannot differentiate it from a "real" form value change.

Expected behavior

I need to set the option "emitEvent: false" in the method calls for addControl and setControl.

What is the motivation / use case for changing the behavior?

I need to differentiate a value change from a form control change.

Environment


Angular version: 5.0.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions