민감하는 형태로 결합되지 않습 드롭지 않은 경우 상호 작용으로 형태에서 각

0

질문

나는 형태로는 3 개의 드롭 다운,드롭다운 이들에서 데이터 API 문제입니다]드롭다운 결합하지 않는 경우 데이터의 마음에 드롭다운(흐림에서 신청양식)

내 HTML

<form [formGroup]="dropdownsForm" novalidate class="needs-validation">
<div class="dropdown">
              <select class="form-control" formControlName="CountryName" 
                [attr.data-live-search]="true" style="width: 150px;" >
                <option *ngFor="let Country of allCountrys" [value]="Country.id">
                  {{Country.title}}</option>
              </select>
</div>
</form>

내 ts

allCountrys: DropDownListForLkpsDto[];

 constructor(
    private fb: FormBuilder,
    private _countryService: CountryServiceProxy
  ) {

  }

ngOnInit(): void {
this.dropdownsForm = this.fb.group(
      {
        CountryName: [""],
      }
    );


    this._countryService.getAllCountrysForDDl().subscribe(result => {
      this.allCountrys = result;

    });
}
angular binding boilerplate dropdown
2021-11-22 14:02:12
1

최고의 응답

1

3 일 후에 검색,우리가 마지막으로 찾 문제 내 ts 파일이 라인 changeDetection: ChangeDetectionStrategy.OnPush@Component({ }) 때 우리는 우리 제거 changeDetection 선 잘 작동

2021-11-24 15:55:39

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................