3👍
✅
There are a number of patterns you could use here to pre-process your data.
- Process your data in the
then
function you have created - Wrap the data in functions within the
{{ ... }}
blocks in the template - Create a component that is used as the element that the
v-for
loop iterates over which displays a computed value - Use a computed value as the source array of the
v-for
directive in the main template. This is often done using a processing function mapped to the source data, as inlog.map( data => data.logId.jobPerformed.trim()
Source:stackexchange.com