如何在 angular 8 中重置反应式表单下拉列表

How to reset reactive form dropdown in angular 8

尝试重置 angular 8 中的下拉菜单但没有 working.If 我点击重置按钮 我想显示 选择你的城市 但不是 working.It 随 empty.How 一起出现解决这个问题。

app.component.ts:

  reset(){
    his.registrationForm.reset();
  }

演示:https://stackblitz.com/edit/angular-select-dropdown-reactive-form-4nvza7?file=src/app/app.component.ts

试试这个:

reset(){
  this.registrationForm.get('cityName').setValue('');
}