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/guide/migration.md
+90-87Lines changed: 90 additions & 87 deletions
Original file line number
Diff line number
Diff line change
@@ -1277,57 +1277,58 @@ Satu kali *binding* (`{% raw %}{{* foo }}{% endraw %}`) telah digantikan oleh [`
1277
1277
</div>
1278
1278
{% endraw %}
1279
1279
1280
-
## Reactivity
1280
+
## Reaktifitas
1281
1281
1282
-
### `vm.$watch` <sup>changed</sup>
1282
+
### `vm.$watch` <sup>digantikan</sup>
1283
1283
1284
-
Watchers created via `vm.$watch`are now fired before the associated component rerenders. This gives you the chance to further update state before the component rerender, thus avoiding unnecessary updates. For example, you can watch a component prop and update the component's own data when the prop changes.
1284
+
Pengamat (*Watchers*) yang dibuat dengan `vm.$watch`sekarang terpanggil sebelum komponen yang terasosiasi di render. Ini memberikanmu untuk lebih lanjut memperbaharui *state* sebelum komponen di render, sehingga menghindari pembaharuan yang tidak perlu. Contoh, kamu dapat memantau properti (*prop*) sebuah komponen dan memperbaharui data saat properti komponen berubah.
1285
1285
1286
-
If you were previously relying on `vm.$watch`to do something with the DOM after a component updates, you can instead do so in the `updated`lifecycle hook.
1286
+
Jika kamu sebelumnya bergantung pada `vm.$watch`untuk melakukan sesuatu dalam DOM setelah komponen diperbaharui, kamu dapat juga melakukannya pada `updated`kait suklus hidup Vue.
1287
1287
1288
1288
{% raw %}
1289
1289
<divclass="upgrade-path">
1290
-
<h4>Upgrade Path</h4>
1291
-
<p>Run your end-to-end test suite, if you have one. The <strong>failed tests</strong> should alert to you to the fact that a watcher was relying on the old behavior.</p>
1290
+
<h4>Jalur upgrade</h4>
1291
+
<p>Jalankan <i>end-to-end test</i> anda, jika kamu memilikinya. <strong>Tes yang gagal</strong> akan memperingatkanmu jika pengamat <i>(watcher)</i> masih bergantung/menggunakan cara lama.</p>
1292
1292
</div>
1293
1293
{% endraw %}
1294
1294
1295
-
### `vm.$set` <sup>changed</sup>
1295
+
### `vm.$set` <sup>digantikan</sup>
1296
1296
1297
-
`vm.$set`is now an alias for[`Vue.set`](../api/#Vue-set).
1297
+
`vm.$set`sekarang adalah padanan dari[`Vue.set`](../api/#Vue-set).
1298
1298
1299
1299
{% raw %}
1300
1300
<divclass="upgrade-path">
1301
-
<h4>Upgrade Path</h4>
1302
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of the obsolete usage.</p>
1301
+
<h4>Jalur upgrade</h4>
1302
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode untuk menemukan contoh penggunaan yang sudah usang.</p>
1303
1303
</div>
1304
1304
{% endraw %}
1305
1305
1306
-
### `vm.$delete` <sup>changed</sup>
1306
+
### `vm.$delete` <sup>digantikan</sup>
1307
1307
1308
-
`vm.$delete`is now an alias for[`Vue.delete`](../api/#Vue-delete).
1308
+
`vm.$delete`sekarang merupakan padanan dari[`Vue.delete`](../api/#Vue-delete).
1309
1309
1310
1310
{% raw %}
1311
1311
<divclass="upgrade-path">
1312
-
<h4>Upgrade Path</h4>
1313
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of the obsolete usage.</p>
1312
+
<h4>Jalur upgrade</h4>
1313
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode untuk menemukan contoh penggunaan yang sudah usang.</p>
1314
1314
</div>
1315
1315
{% endraw %}
1316
1316
1317
-
### `Array.prototype.$set` <sup>removed</sup>
1318
1317
1319
-
Use `Vue.set` instead.
1318
+
### `Array.prototype.$set` <sup>dihapuskan</sup>
1319
+
1320
+
Gunakan `Vue.set` sebagai gantinya.
1320
1321
1321
1322
{% raw %}
1322
1323
<divclass="upgrade-path">
1323
-
<h4>Upgrade Path</h4>
1324
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>.$set</code> on an array. If you miss any, you should see <strong>console errors</strong> from the missing method.</p>
1324
+
<h4>Jalur upgrade</h4>
1325
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh <code>.$set</code> pada <i>array</i>. Jika kamu melewatkannya , silahkan lihat pada <strong>konsol galat</strong> dari metode yang hilang.</p>
Atau lebih baik, berikan parameter index pada *method* hapus:
1342
1343
1343
1344
```js
1344
1345
methods: {
@@ -1350,152 +1351,154 @@ methods: {
1350
1351
1351
1352
{% raw %}
1352
1353
<divclass="upgrade-path">
1353
-
<h4>Upgrade Path</h4>
1354
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>.$remove</code> on an array. If you miss any, you should see <strong>console errors</strong> from the missing method.</p>
1354
+
<h4>Jalur upgrade</h4>
1355
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh <code>.$remove</code> pada <i>array</i>. Jika kamu melewatkan sesuatu, coba lihat <strong>konsol galat</strong> dari <i>method</i> yang kamu lewatkan.</p>
1355
1356
</div>
1356
1357
{% endraw %}
1357
1358
1358
-
### `Vue.set` and `Vue.delete` on Vue instances <sup>removed</sup>
1359
1359
1360
-
`Vue.set` and `Vue.delete` can no longer work on Vue instances. It is now mandatory to properly declare all top-level reactive properties in the data option. If you'd like to delete properties on a Vue instance or its `$data`, set it to null.
1360
+
### `Vue.set` dan `Vue.delete` pada *instance* Vue <sup>dihapuskan</sup>
1361
+
1362
+
`Vue.set` dan `Vue.delete` tidak dapat berkerja lagi pada *instance* Vue. Sekarang merupakan sebuah kewajiban untuk mendeklarasikan dengan benar properti reaktif tingkat-atas pada opsi data. Jika kamu ingin menghapus properti pada *instance* Vue atau `$data` setel ke nol (*null*).
1361
1363
1362
1364
{% raw %}
1363
1365
<divclass="upgrade-path">
1364
-
<h4>Upgrade Path</h4>
1365
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>Vue.set</code> or <code>Vue.delete</code> on a Vue instance. If you miss any, they'll trigger <strong>console warnings</strong>.</p>
1366
+
<h4>Jalur upgrade</h4>
1367
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh <code>Vue.set</code> atau <code>Vue.delete</code> pada <i>instance</i> Vue. Jika kamu melewatkan sesuatu, hal tersebut akan menimbulkan <strong>peringatan pada konsol</strong>.</p>
1366
1368
</div>
1367
1369
{% endraw %}
1368
1370
1369
-
### Replacing`vm.$data` <sup>removed</sup>
1371
+
### `vm.$data` <sup>dihapuskan</sup>
1370
1372
1371
-
It is now prohibited to replace a component instance's root $data. This prevents some edge cases in the reactivity system and makes the component state more predictable (especially with type-checking systems).
1373
+
Mengantikan *instance* komponen pada akar `$data` sekarang telah dilarang. Ini mencegah beberapa kasus langka pada sistem reaktifitas Vue dan membuat *state* pada komponen lebih dapat di prediksi (khususnya dengan sistem pengecekan-tipe).
1372
1374
1373
1375
{% raw %}
1374
1376
<divclass="upgrade-path">
1375
-
<h4>Upgrade Path</h4>
1376
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of overwriting <code>vm.$data</code>. If you miss any, <strong>console warnings</strong> will be emitted.</p>
1377
+
<h4>Jalur upgrade</h4>
1378
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh penimpaan <code>vm.$data</code>. Jika kamu melewatkannya, <strong>peringatan pada konsol</strong> akan dimunculkan.</p>
1377
1379
</div>
1378
1380
{% endraw %}
1379
1381
1380
-
### `vm.$get` <sup>removed</sup>
1381
1382
1382
-
Instead, retrieve reactive data directly.
1383
+
### `vm.$get` <sup>dihapuskan</sup>
1384
+
1385
+
Sebagai gantinya, mengambil data reaktif secara langsung.
1383
1386
1384
1387
{% raw %}
1385
1388
<divclass="upgrade-path">
1386
-
<h4>Upgrade Path</h4>
1387
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>vm.$get</code>. If you miss any, you'll see <strong>console errors</strong>.</p>
1389
+
<h4>Jalur upgrade</h4>
1390
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh <code>vm.$get</code>. Jika kamu melewatkan sesuatu, kamu akan melihat <strong>konsol galat</strong>.</p>
1388
1391
</div>
1389
1392
{% endraw %}
1390
1393
1391
-
## DOM-Focused Instance Methods
1394
+
## Metode *Instance*DOM-terfokus (DOM-Focused Instance Methods)
1392
1395
1393
-
### `vm.$appendTo` <sup>removed</sup>
1396
+
### `vm.$appendTo` <sup>dihapuskan</sup>
1394
1397
1395
-
Use the native DOM API:
1398
+
Gunakan API DOM asli (*native*):
1396
1399
1397
1400
{% codeblock lang:js %}
1398
1401
myElement.appendChild(vm.$el)
1399
1402
{% endcodeblock %}
1400
1403
1401
1404
{% raw %}
1402
1405
<divclass="upgrade-path">
1403
-
<h4>Upgrade Path</h4>
1404
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>vm.$appendTo</code>. If you miss any, you'll see <strong>console errors</strong>.</p>
1406
+
<h4>Jalur upgrade</h4>
1407
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh <code>vm.$appendTo</code>. Jika kamu melewatkan sesuatu, kamu akan melihat <strong>galat pada konsol</strong>.</p>
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>vm.$before</code>. If you miss any, you'll see <strong>console errors</strong>.</p>
1421
+
<h4>Jalur upgrade</h4>
1422
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk melihat contoh <code>vm.$before</code>. Jika kamu melewatkan sesuatu, kamu akan melihat <strong>galat pada konsol</strong>.</p>
Atau jika`myElement`merupakan komponen anak terakhir
1432
1435
1433
1436
{% codeblock lang:js %}
1434
1437
myElement.parentNode.appendChild(vm.$el)
1435
1438
{% endcodeblock %}
1436
1439
1437
1440
{% raw %}
1438
1441
<divclass="upgrade-path">
1439
-
<h4>Upgrade Path</h4>
1440
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>vm.$after</code>. If you miss any, you'll see <strong>console errors</strong>.</p>
1442
+
<h4>Jalur upgrade</h4>
1443
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk melihat contoh <code>vm.$after</code>. Jika kamu melewatkan sesuatu, kamu kan melihat <strong>galat pada konsol</strong>.</p>
1441
1444
</div>
1442
1445
{% endraw %}
1443
1446
1444
-
### `vm.$remove` <sup>removed</sup>
1447
+
### `vm.$remove` <sup>dihapuskan</sup>
1445
1448
1446
-
Use the native DOM API:
1449
+
Gunakan API DOM asli (*native*):
1447
1450
1448
1451
{% codeblock lang:js %}
1449
1452
vm.$el.remove()
1450
1453
{% endcodeblock %}
1451
1454
1452
1455
{% raw %}
1453
1456
<divclass="upgrade-path">
1454
-
<h4>Upgrade Path</h4>
1455
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>vm.$remove</code>. If you miss any, you'll see <strong>console errors</strong>.</p>
1457
+
<h4>Jalur upgrade</h4>
1458
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh<code>vm.$remove</code>. Jika kamu melewatkan sesuatu, kamu akan melihat <strong>galat pada konsol</strong>.</p>
1456
1459
</div>
1457
1460
{% endraw %}
1458
1461
1459
-
## Meta InstanceMethods
1462
+
## Metode pada *Meta Instance* (Meta Instance Methods)
1460
1463
1461
-
### `vm.$eval` <sup>removed</sup>
1464
+
### `vm.$eval` <sup>dihapuskan</sup>
1462
1465
1463
-
No real use. If you do happen to rely on this feature somehow and aren't sure how to work around it, post on [the forum](https://forum.vuejs.org/)for ideas.
1466
+
Tidak ada gunanya. Jika kamu ternyata bergantung pada fitur ini dan tidak tahu bagaimana harus menggantinya, silahkan membuka obrolan pada [forum Vue.js](https://forum.vuejs.org/)untuk ide.
1464
1467
1465
1468
{% raw %}
1466
1469
<divclass="upgrade-path">
1467
-
<h4>Upgrade Path</h4>
1468
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>vm.$eval</code>. If you miss any, you'll see <strong>console errors</strong>.</p>
1470
+
<h4>Jalur upgrade</h4>
1471
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh <code>vm.$eval</code>. Jika kamu melewatkan sesuatu, kamu akan melihat <strong>galat pada konsol</strong>.</p>
1469
1472
</div>
1470
1473
{% endraw %}
1471
1474
1472
-
### `vm.$interpolate` <sup>removed</sup>
1475
+
### `vm.$interpolate` <sup>dihapuskan</sup>
1473
1476
1474
-
No real use. If you do happen to rely on this feature somehow and aren't sure how to work around it, post on [the forum](https://forum.vuejs.org/)for ideas.
1477
+
Tidak ada gunanya. Jika kamu ternyata bergantung pada fitur ini dan tidak tahu bagaimana harus menggantinya, silahkan membuka obrolan pada [forum Vue.js](https://forum.vuejs.org/)untuk ide.
1475
1478
1476
1479
{% raw %}
1477
1480
<divclass="upgrade-path">
1478
-
<h4>Upgrade Path</h4>
1479
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>vm.$interpolate</code>. If you miss any, you'll see <strong>console errors</strong>.</p>
1481
+
<h4>Jalur upgrade</h4>
1482
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh <code>vm.$interpolate</code>. Jika kamu melewatkan sesuatu, kamu akan melihat <strong>galat pada konsol</strong>.</p>
1480
1483
</div>
1481
1484
{% endraw %}
1482
1485
1483
-
### `vm.$log` <sup>removed</sup>
1486
+
### `vm.$log` <sup>dihapuskan</sup>
1484
1487
1485
-
Use the [Vue Devtools](https://github.com/vuejs/vue-devtools)for the optimal debugging experience.
1488
+
Gunakan [Vue Devtools](https://github.com/vuejs/vue-devtools)untuk pengalaman *debugging* yang optimal.
1486
1489
1487
1490
{% raw %}
1488
1491
<divclass="upgrade-path">
1489
-
<h4>Upgrade Path</h4>
1490
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>vm.$log</code>. If you miss any, you'll see <strong>console errors</strong>.</p>
1492
+
<h4>Jalur upgrade</h4>
1493
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh <code>vm.$log</code>. Jika kamu melewatkan sesuatu, kamu akan melihat <strong>galat pada konsol</strong>.</p>
1491
1494
</div>
1492
1495
{% endraw %}
1493
1496
1494
-
## Instance DOM Options
1497
+
## Opsi pada *Instance* DOM (Instance DOM Options)
1495
1498
1496
-
### `replace: false` <sup>removed</sup>
1499
+
### `replace: false` <sup>dihapuskan</sup>
1497
1500
1498
-
Components now always replace the element they're bound to. To simulate the behavior of `replace: false`, you can wrap your root component with an element similar to the one you're replacing. For example:
1501
+
Tiap - tiap komponen sekarang selalu menggantikan element yang terkait dengan mereka. Untuk mengsimulasikan sifat dari `replace: false`, kamu dapat membungkus akar komponen dengan elemen yang sama terhadap elemen yang kamu ganti. Contoh:
1499
1502
1500
1503
```js
1501
1504
newVue({
@@ -1504,7 +1507,7 @@ new Vue({
1504
1507
})
1505
1508
```
1506
1509
1507
-
Or with a render function:
1510
+
Atau menggunakan fungsi *render*:
1508
1511
1509
1512
```js
1510
1513
newVue({
@@ -1521,8 +1524,8 @@ new Vue({
1521
1524
1522
1525
{% raw %}
1523
1526
<divclass="upgrade-path">
1524
-
<h4>Upgrade Path</h4>
1525
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>replace: false</code>.</p>
1527
+
<h4>Jalur upgrade</h4>
1528
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh <code>replace: false</code>.</p>
1526
1529
</div>
1527
1530
{% endraw %}
1528
1531
@@ -1572,41 +1575,41 @@ HTML interpolation has been [removed in favor of `v-html`](#HTML-Interpolation-r
1572
1575
</div>
1573
1576
{% endraw %}
1574
1577
1575
-
## Global API
1578
+
## API Global
1576
1579
1577
-
### `Vue.extend`with`el` <sup>removed</sup>
1580
+
### `Vue.extend`dengan`el` <sup>dihapuskan</sup>
1578
1581
1579
-
The el option can no longer be used in `Vue.extend`. It's only valid as an instance creation option.
1582
+
Opsi `el` sudah tidak dapat digunakan pada `Vue.extend`. Sekarang hal ini hanay valid sebagai opsi pembuatan *instance*.
1580
1583
1581
1584
{% raw %}
1582
1585
<divclass="upgrade-path">
1583
-
<h4>Upgrade Path</h4>
1584
-
<p>Run your end-to-end test suite or app after upgrading and look for <strong>console warnings</strong> about the <code>el</code> option with <code>Vue.extend</code>.</p>
1586
+
<h4>Jalur upgrade</h4>
1587
+
<p>Jalankan <i>end-to-end testing</i> pada aplikasi anda atau setelah anda meng-update Vue cari <strong>peringatan pada konsol</strong> soal penggunaan opsi <code>el</code> dengan <code>Vue.extend</code>.</p>
1585
1588
</div>
1586
1589
{% endraw %}
1587
1590
1588
-
### `Vue.elementDirective` <sup>removed</sup>
1591
+
### `Vue.elementDirective` <sup>dihapuskan</sup>
1589
1592
1590
-
Use components instead.
1593
+
Gunakan komponen sebagai gantinya.
1591
1594
1592
1595
{% raw %}
1593
1596
<divclass="upgrade-path">
1594
-
<h4>Upgrade Path</h4>
1595
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>Vue.elementDirective</code>.</p>
1597
+
<h4>Jalur upgrade</h4>
1598
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh penggunaan dari <code>Vue.elementDirective</code>.</p>
1596
1599
</div>
1597
1600
{% endraw %}
1598
1601
1599
-
### `Vue.partial` <sup>removed</sup>
1602
+
### `Vue.partial` <sup>dihapuskan</sup>
1600
1603
1601
-
Partials have been removed in favor of more explicit data flow between components, using props. Unless you're using a partial in a performance-critical area, the recommendation is to use a [normal component](components.html)instead. If you were dynamically binding the `name`of a partial, you can use a [dynamic component](components.html#Dynamic-Components).
1604
+
*Partials* telah dihapus dengan alasan untuk menjaga aliran data antara komponen, menggunakan *props* komponen. Kecuali kamu menggunakan *partial* pada area yang memerlukan performa lebih, rekomendasi untuk masalah tersebut adalah dengan menggunakan [komponen biasa](components.html)sebagai gantinya. Jika kamu secara dinamis mengikat `name`dari sebuah partial, kamu dapat menggunakan [komponen dinamis](components.html#Dynamic-Components).
1602
1605
1603
-
If you happen to be using partials in a performance-critical part of your app, then you should upgrade to [functional components](render-function.html#Functional-Components). They must be in a plain JS/JSX file (rather than in a `.vue` file) and are stateless and instanceless, like partials. This makes rendering extremely fast.
1606
+
Jika kamu ternyata menggunakan *partial* di applikasi andad pada tempat yang membutuhkan performa lebih cepat, maka kamu harus ganti dengan [komponen fungsional](render-function.html#Functional-Components). Komponen tersebut harus di deklarasikan dengan JS/JSX file (bukan menggunakan `.vue` file) dan juga *stateless* dan *instanceless*, seperti partials. Ini membuat kecepatan render sangat cepat
1604
1607
1605
-
A benefit of functional components over partials is that they can be much more dynamic, because they grant you access to the full power of JavaScript. There is a cost to this power however. If you've never used a component framework with render functions before, they may take a bit longer to learn.
1608
+
Keuntungan menggunakan komponen fungsional daripada *partial* adalah komponen fungsional lebih dinamis, dikarenakan kamu dapat menggunakan javascript seutuhnya pada komponen. Tetapi ada juga hal yang harus di bayar saat menggunakan komponen fungsional. Jika kamu belum pernah menggunakan kerangka kerja dengan fungsi *render* sebelumnya, mungkin kamu perlu waktu agak lama untuk mempelajarinya.
1606
1609
1607
1610
{% raw %}
1608
1611
<divclass="upgrade-path">
1609
-
<h4>Upgrade Path</h4>
1610
-
<p>Run the <ahref="https://github.com/vuejs/vue-migration-helper">migration helper</a> on your codebase to find examples of <code>Vue.partial</code>.</p>
1612
+
<h4>Jalur upgrade</h4>
1613
+
<p>Jalankan <ahref="https://github.com/vuejs/vue-migration-helper">alat bantu migrasi</a> pada kode anda untuk menemukan contoh penggunaan <code>Vue.partial</code>.</p>
0 commit comments