I tried to nest *ngFor like this :
<div *ngFor="let cubeArray of cubeMatrice">
<my-cube *ngFor="let cube of cubeArray">
</my-cube>
</div>
However that does not work. Is it that the variable cubeArray
is only tied to that specific div tag
?
I also tried some other solutions I've found here : How to use Angular2 templates with *ngFor to create a table out of nested arrays? but that does not work with vanilla html tags.
I know I can use a component in between to resolve the issue. I just want to know if nested fors are possible somehow or why not. Is the scope of cubeArray
variable only the div ?