How do we do that?
There was $setPristine()
in ng1.
Btw, I'm talking about ControlGroup
type of form.
There is the markAsPristine
method (it seems undocumented for now, but can be found here: https://github.com/angular/angular/blob/53f0c2206df6a5f8ee03d611a7563ca1a78cc82d/tools/public_api_guard/forms/index.d.ts#L42).
Basically, this.form.markAsPristine()
does what you expect.