Answer the question
In order to leave comments, you need to log in
Such a destructuring notation is considered a constraint and ngulare?
<div *ngFor="let [lang, value] of langMap.entries()">foo</div>
Answer the question
In order to leave comments, you need to log in
1. destructuring assignments in struct microsyntax doesn't work https://github.com/angular/angular/issues/27555
2. it's better to write like this
<div *ngFor="let entry of obj | keyvalue">
{{ entry.key }} {{ entry.value }}
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question