FRONTEND Telegram 1362
#vue #frontend


💚 v-for ichida destrukturizatsiya qilish

🟡 ES6 destrukturizatsiyasidan foydalanmasdan v-for'dan foydalanish
<div v-for="car in cars" :key="car.id">
<h2>{{ car.make }} {{ car.model }}</h2>
</div>

cars[] avtomobillar ro'yxati va har bir avtomobil quyidagi tuzilishga ega:
interface Car {
make: string; // Avtomobil markasi
model: string; // Modeli
id: string; // id
}


🟡 ES6 destrukturizatsiyasidan foydalanib, kodni toza va tushunarli qilish mumkin:
<div v-for="{id, make, model} in cars" :key="id">
<h2>{{ make }} {{ model }}</h2>
</div>


@frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥8👍2



tgoop.com/frontend/1362
Create:
Last Update:

#vue #frontend


💚 v-for ichida destrukturizatsiya qilish

🟡 ES6 destrukturizatsiyasidan foydalanmasdan v-for'dan foydalanish
<div v-for="car in cars" :key="car.id">
<h2>{{ car.make }} {{ car.model }}</h2>
</div>

cars[] avtomobillar ro'yxati va har bir avtomobil quyidagi tuzilishga ega:
interface Car {
make: string; // Avtomobil markasi
model: string; // Modeli
id: string; // id
}


🟡 ES6 destrukturizatsiyasidan foydalanib, kodni toza va tushunarli qilish mumkin:
<div v-for="{id, make, model} in cars" :key="id">
<h2>{{ make }} {{ model }}</h2>
</div>


@frontend

BY Frontend


Share with your friend now:
tgoop.com/frontend/1362

View MORE
Open in Telegram


Telegram News

Date: |

The Channel name and bio must be no more than 255 characters long Hashtags Telegram desktop app: In the upper left corner, click the Menu icon (the one with three lines). Select “New Channel” from the drop-down menu. Developing social channels based on exchanging a single message isn’t exactly new, of course. Back in 2014, the “Yo” app was launched with the sole purpose of enabling users to send each other the greeting “Yo.” End-to-end encryption is an important feature in messaging, as it's the first step in protecting users from surveillance.
from us


Telegram Frontend
FROM American