Complete the code to correctly loop over items using v-for.
<ul> <li [1]="item in items">{{ item }}</li> </ul>
The v-for directive is used to loop over arrays in Vue templates.
Complete the code to conditionally show list items only if item.active is true, using v-if.
<ul> <li v-for="item in items" [1]="item.active">{{ item.name }}</li> </ul>
The v-if directive conditionally renders elements based on the expression.
Fix the error in the code by placing v-if with correct precedence to filter items inside the loop.
<ul> <li [1]="item.active" v-for="item in items">{{ item.name }}</li> </ul>
When using v-for and v-if on the same element, v-for should come first and v-if after to ensure correct filtering.
Fill both blanks to correctly loop over items and conditionally render only active items.
<ul> <li [1]="item in items" [2]="item.active">{{ item.name }}</li> </ul>
Use v-for to loop and v-if to conditionally render active items inside the loop.
Fill all three blanks to create a list that loops over items, shows only active items, and binds a unique key.
<ul> <li [1]="item in items" [2]="item.active" [3]="item.id">{{ item.name }}</li> </ul>
Use v-for to loop, v-if to filter active items, and :key to bind a unique key for Vue's rendering optimization.