akveo / akveo/nebular

NbDialog not returning input value

Aperta
#3,054 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
8.1k
Fork
1.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Issue type
nbdialog not working properly

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

* [x] bug report
* [ ] feature request

### Issue description
I have a basic component to be rendered with `this.dialogService(CSRDialogComponent)`
Implemented `onClose.subscribe...`but it doesn't take the text. Nor with `console.log()`or saving into another variable.
```
@Component({
selector: 'ngx-csrdialog',
templateUrl: './csrdialog.component.html',
styleUrls: ['./csrdialog.component.scss'],
})
export class CSRDialogComponent implements OnInit {

constructor(private dialogRef: NbDialogRef) {
}
ngOnInit(): void {
}
fecha() {
this.dialogRef.close();
}
}
```
The html:
```

Cole abaixo o CSR completo






Adicionar CSR


```
`fecha()` is the function that only applies `this.dialogRef.close()` and it works

**Current behavior:**

txt keeps undefined, function works properly

**Expected behavior:**

txt has the input expected

**Steps to reproduce:**

Just use this component along with the one which will use `dialogservice.open()`

### Other information:

**npm, node, OS, Browser**
```
Angular CLI: 12.1.0
Node: 14.19.1
Package Manager: npm 8.5.1
OS: arch linux x64

Angular: 12.1.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, google-maps, language-service, platform-browser
... platform-browser-dynamic, router

Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1201.0
@angular-devkit/build-angular 12.1.0
@angular-devkit/core 12.1.0
@angular-devkit/schematics 12.1.0
@schematics/angular 12.1.0
rxjs 6.6.2
typescript 4.2.3
```

I'm using Firefox

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.