In my source code, i recieve from a http.get call some data. When i try to write the status of each 'formular' in the console, nothing happens. Where is my mistake?
fillTable(): void {
console.log('fillTable');
this.formulare = [];
if (this.ansichtAuswahl === this.ansichten.ALLE) {
this.formularService.getAll().subscribe(formular =>
this.formulare = formular,
error => console.log(error));
} else {
this.formularService.getMy().subscribe(formular =>
this.formulare = formular,
error => console.log(error));
}
this.formulare.forEach( (element) => {console.log(element.status); });
this.filterStatus();}
The formular array is filled, because the table on the website is filled too, but there is no console output.