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 visual aspect of channels is very critical. In fact, design is the first thing that a potential subscriber pays attention to, even though unconsciously. The channel also called on people to turn out for illegal assemblies and listed the things that participants should bring along with them, showing prior planning was in the works for riots. The messages also incited people to hurl toxic gas bombs at police and MTR stations, he added. best-secure-messaging-apps-shutterstock-1892950018.jpg Telegram iOS app: In the “Chats” tab, click the new message icon in the right upper corner. Select “New Channel.” Clear
from us


Telegram Frontend
FROM American