You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/api/index.md
+43-43Lines changed: 43 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -1311,39 +1311,39 @@ type: api
1311
1311
1312
1312
- **Detail:**
1313
1313
1314
-
The data object that the Vue instance is observing. The Vue instance proxies access to the properties on its data object.
1314
+
Objek data yang dipantau oleh *Vue instance*. *Vue instance* menjembatani akses ke properti-properti yang ada di objek data *instance* tersebut.
1315
1315
1316
1316
- **Lihat juga:** [Options / Data - data](#data)
1317
1317
1318
1318
### vm.$props
1319
1319
1320
-
> New in 2.2.0+
1320
+
> Baru di versi 2.2.0+
1321
1321
1322
1322
- **Tipe:** `Object`
1323
1323
1324
1324
- **Detail:**
1325
1325
1326
-
An object representing the current props a component has received. The Vue instance proxies access to the properties on its props object.
1326
+
Sebuah objek yang merepresentasikan *props* terkini yang diterima sebuah komponen. *Vue instance* menjembatani akses ke properti-properti yang ada di objek *props* *instance* tersebut.
1327
1327
1328
1328
### vm.$el
1329
1329
1330
1330
- **Tipe:** `Element`
1331
1331
1332
-
- **Read only**
1332
+
- **Hanya dapat dibaca**
1333
1333
1334
1334
- **Detail:**
1335
1335
1336
-
The root DOM element that the Vue instance is managing.
1336
+
Elemen pangkal (root) DOM yang dikelola oleh *Vue instance*.
1337
1337
1338
1338
### vm.$options
1339
1339
1340
1340
- **Tipe:** `Object`
1341
1341
1342
-
- **Read only**
1342
+
- **Hanya dapat dibaca**
1343
1343
1344
1344
- **Detail:**
1345
1345
1346
-
The instantiation options used for the current Vue instance. This is useful when you want to include custom properties in the options:
1346
+
Opsi-opsi pembuatan (*instantiation*) yang digunakan untuk *Vue instance* tersebut. Properti ini berguna saat kamu ingin memasukkan properti khusus di dalam opsi:
1347
1347
1348
1348
``` js
1349
1349
newVue({
@@ -1358,59 +1358,59 @@ type: api
1358
1358
1359
1359
- **Tipe:** `Vue instance`
1360
1360
1361
-
- **Read only**
1361
+
- **Hanya dapat dibaca**
1362
1362
1363
1363
- **Detail:**
1364
1364
1365
-
The parent instance, if the current instance has one.
1365
+
*Instance* induk (*parent*), jika *instance* tersebut mempunyainya.
1366
1366
1367
1367
### vm.$root
1368
1368
1369
1369
- **Tipe:** `Vue instance`
1370
1370
1371
-
- **Read only**
1371
+
- **Hanya dapat dibaca**
1372
1372
1373
1373
- **Detail:**
1374
1374
1375
-
The root Vue instance of the current component tree. If the current instance has no parents this value will be itself.
1375
+
*Vue instance* pangkal (root) dari pohon komponen yang ada. Jika *instance* tersebut tidak mempunyai induk (*parent*), maka nilai dari properti ini adalah *instance* itu sendiri.
1376
1376
1377
1377
### vm.$children
1378
1378
1379
1379
- **Tipe:** `Array<Vue instance>`
1380
1380
1381
-
- **Read only**
1381
+
- **Hanya dapat dibaca**
1382
1382
1383
1383
- **Detail:**
1384
1384
1385
-
The direct child components of the current instance. **Note there's no order guarantee for `$children`, and it is not reactive.** If you find yourself trying to use `$children`for data binding, consider using an Array and`v-for`to generate child components, and use the Array as the source of truth.
1385
+
Komponen-komponen anakan (child) yang langsung berada dibawah *instance* tersebut. **Sebagai catatan, tidak ada jaminan akan urutan `$children`, dan mereka tidak bersifat reaktif.** Jika kamu ingin mencoba menggunakan `$children`untuk mengikat data (binding), pertimbangkan untuk menggunakan *Array* dan`v-for`untuk membuat (*generate*) komponen anakan (*child*), dan gunakan *Array* tersebut sebagai sumber validitas.
1386
1386
1387
1387
### vm.$slots
1388
1388
1389
1389
- **Tipe:** `{ [name: string]:?Array<VNode> }`
1390
1390
1391
-
- **Read only**
1391
+
- **Hanya dapat dibaca**
1392
1392
1393
1393
- **Detail:**
1394
1394
1395
-
Used to programmatically access content [distributed by slots](../guide/components.html#Content-Distribution-with-Slots). Each [named slot](../guide/components.html#Named-Slots) has its own corresponding property (e.g. the contents of `slot="foo"`will be found at `vm.$slots.foo`). The`default`property contains any nodes not included in a named slot.
1395
+
Digunakan untuk secara terprogram mengakses konten [yang didistribusi dengan slots](../guide/components.html#Content-Distribution-with-Slots). Tiap [slot yang memiliki nama (*named slot*)](../guide/components-slots.html#Slot-yang-Memiliki-Nama-Named-Slot) mempunyai properti terkait sendiri (misal: konten `slot="foo"`akan ditemukan pada `vm.$slots.foo`). Properti`default`berisi titik-titik (*nodes*) yang tidak masuk di dalam slot yang memiliki nama (*named slot*).
1396
1396
1397
-
Accessing`vm.$slots`is most useful when writing a component with a [render function](../guide/render-function.html).
1397
+
Pengaksesan`vm.$slots`paling berguna saat menulis sebuah komponen dengan [fungsi *render*](.../guide/render-function.html).
1398
1398
1399
-
- **Example:**
1399
+
- **Contoh:**
1400
1400
1401
1401
```html
1402
1402
<blog-post>
1403
1403
<h1 slot="header">
1404
-
About Me
1404
+
Tentang Saya
1405
1405
</h1>
1406
1406
1407
-
<p>Here's some page content, which will be included in vm.$slots.default, because it's not inside a named slot.</p>
1407
+
<p>Disini beberapa konten halaman, yang akan masuk di dalamvm.$slots.default, karena tidak masuk di slot yang memiliki nama (named slot).</p>
1408
1408
1409
1409
<p slot="footer">
1410
1410
Copyright 2016 Evan You
1411
1411
</p>
1412
1412
1413
-
<p>If I have some content down here, it will also be included invm.$slots.default.</p>.
1413
+
<p>Jika saya memiliki beberapa konten disini, itu juga akan masuk di dalamvm.$slots.default.</p>.
1414
1414
</blog-post>
1415
1415
```
1416
1416
@@ -1430,84 +1430,84 @@ type: api
1430
1430
```
1431
1431
1432
1432
- **Lihat juga:**
1433
-
- [`<slot>` Component](#slot-1)
1434
-
- [Content Distribution with Slots](../guide/components.html#Content-Distribution-with-Slots)
Used to programmatically access [scoped slots](../guide/components.html#Scoped-Slots). For each slot, including the `default` one, the object contains a corresponding function that returns VNodes.
1447
+
Digunakan untuk secara terprogram mengakses [scoped slots](../guide/components.html#Scoped-Slots). Tiap slot, termasuk `default`, objeknya memiliki fungsi terkait yang mengembalikan *VNodes*.
1448
1448
1449
-
Accessing`vm.$scopedSlots`is most useful when writing a component with a [render function](../guide/render-function.html).
1449
+
Pengaksesan`vm.$scopedSlots`sangat berguna saat menulis komponen dengan [fungsi render](../guide/render-function.html).
1450
1450
1451
-
**Note:** since 2.6.0+, there are two notable changes to this property:
1451
+
**Catatan:** sejak versi 2.6.0+, ada dua perubahan di properti ini yg perlu diperhatikan:
1452
1452
1453
-
1. Scoped slot functions are now guaranteed to return an array of VNodes, unless the return value is invalid, in which case the function will return`undefined`.
1453
+
1. Fungsi *scoped slot* saat ini menjamin akan mengembalikan *array* dari *VNodes*, kecuali jika nilai yang dikembalikan tidak valid, yang berarti fungsi tersebut akan mengembalikan`undefined`.
1454
1454
1455
-
2. All`$slots`are now also exposed on `$scopedSlots`as functions. If you work with render functions, it is now recommended to always access slots via `$scopedSlots`, whether they currently use a scope or not. This will not only make future refactors to add a scope simpler, but also ease your eventual migration to Vue 3, where all slots will be functions.
1455
+
2. Semua`$slots`saat ini juga akan terekspos di `$scopedSlots`sebagai fungsi. Jika kamu berurusan dengan fungsi render, saat ini direkomendasikan untuk selalu mengakses *slots* via `$scopedSlots`, entah saat ini mereka menggunakan *scope* atau tidak. Hal ini tidak hanya akan membuat *refactors* mendatang semakin mudah dalam menambahkan sebuah *scope*, tapi juga akan memudahkan migrasi nantinya ke Vue 3, yang dimana semua *slots* adalah fungsi-fungsi.
Contains parent-scope attribute bindings (except for `class`and`style`) that are not recognized (and extracted) as props. When a component doesn't have any declared props, this essentially contains all parent-scope bindings (except for `class`and`style`), and can be passed down to an inner component via `v-bind="$attrs"` - useful when creating higher-order components.
1498
+
Berisi ikatan (bindings) attribut yang berada di cakupan induk (*parent*) (kecuali untuk `class`dan`style`) yang tidak dianggap (dan diekstrak) sebagai *props*. Saat sebuah komponen tidak memiliki deklarasi *props*, properti ini pada dasarnya berisi semua ikatan (bindings) yang berada di cakupan induk (*parent*) (kecuali untuk `class`dan`style`), dan dapat diteruskan kebawah ke komponen *inner* via `v-bind="$attrs"` - berguna saat membuat komponen *higher-order* (HOC).
Contains parent-scope `v-on`event listeners (without `.native` modifiers). This can be passed down to an inner component via `v-on="$listeners"` - useful when creating transparent wrapper components.
1510
+
Berisi pemantau (*listeners*) *events* `v-on`yang berada di cakupan induk (parent) (tanpa pengubah (*modifiers*) `.native`). Properti ini dapat diteruskan kebawah ke komponen *inner* via `v-on="$listeners"` - berguna saat membuat komponen-komponen penyelubung (wrapper) yang bersifat transparan.
0 commit comments