akveo / akveo/ngx-admin

nb-select always empty

オープン
#5,525 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
25.7k
フォーク
7.9k
PR マージ指標
30日以内にマージされた PR はありません

説明

### Issue type

**I'm submitting a ...** (check one with "x")

* [x] bug report

### Issue description

**Current behavior:**

I am trying setter a default value for the component nb-select but the field always stay empty on view html.

how to do this work?

html component

```

{{ municipioDefault.descricao }}
{{ municipioUnidade.descricao }}

```

Angular component
```
ngOnInit() {
this.router.params.subscribe(param => {
// tslint:disable-next-line: no-shadowed-variable
const id = param['id'];
this.municipioService.list().subscribe( municipios => this.municipioSelect = municipios);
this.unidadeHospitalarForm = this.createForm();
if (id) {
this.unidadeHospitalarService.getById(id).subscribe(data => {
this.unidadeHospitalarForm.patchValue(data);
this.municipioDefault = this.unidadeHospitalarForm.get('municipioUnidade').value;

}
```

### Other information:

**npm: 6.4.1 node: v10.15.3 , OS: Windows 10, Browser: Chrome**

```
"@agm/core": "^1.0.0-beta.5",
"@angular/animations": "^8.0.0",
"@angular/cdk": "^8.0.0",
"@angular/common": "^8.0.0",
"@angular/compiler": "^8.0.0",
"@angular/core": "^8.0.0",
"@angular/forms": "^8.0.0",
"@angular/platform-browser": "^8.0.0",
"@angular/platform-browser-dynamic": "^8.0.0",
"@angular/router": "^8.0.0",
"@asymmetrik/ngx-leaflet": "3.0.1",
"@nebular/auth": "4.3.1",
"@nebular/eva-icons": "4.3.1",
"@nebular/security": "4.3.1",
"@nebular/theme": "4.3.1",

```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。