I have just started to work with alpine (recent 3rd version) and faced an issue.
<template x-for="(row_data, index_row) in rows" >
<tr>
<td x-text="row_data.id"></td>
<td ><span x-text="row_data.id"></span></td>
<template x-for="(value, index_header) in header">
<td x-text="row_data[value.name]"></td>
</template>
</tr>
</template>
If x-for loop first “td” is working fine and rendering the data correctly, where second one throws an error, as row_data for it is not defined. Where is the problem? I cannot understand why I cannot use row_data as well in inner html elements?
Thanks in adavance!