Why is this method not working when I try to clear the text field?
相关标签:
This is a solution for reactive forms. Then there is no need to use @ViewChild decorator:
clear() { this.myForm.get('someControlName').reset() }