I mean I want to show a list name, it is a short one, but I want to split my div into 2 divs, the first div with the half of the items and the second one with the others items
<div *ngFor="let item of items; let i = index;">
number of items: 7
item 1, item 5,
item 2, item 6,
item 3, item 7,
how can I do this?
Well first you would want the ngfor on the closest element to where the items will populate because it will repeat all item within the ngfor element. I would try making the outer container element a flex box with wrapping.
Well, maybe I should have two ngfor? the i can create the other div?
the ngfor I have is to show the name list, but how can i divide in two divs?
I think it would be most straightforward to have the template see two separate arrays. Whether you actually store it that way or expose it as two
secondHalf() methods that slice the underlying array on demand would probably depend on how big the array is.
what do you want to intend with splitting the list in two divs?
or a column like style?
Yes i need to like this action?