-
Notifications
You must be signed in to change notification settings - Fork 90
Translate Bahasa Indonesia : Vue Instance #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/v2/guide/instance.md
Outdated
@@ -1,24 +1,27 @@ | |||
--- | |||
title: The Vue Instance | |||
title: Permintaan Vue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Permintaan Vue ini gak familiar kata2nya.
Mending pertahankan Vue Instance
src/v2/guide/instance.md
Outdated
type: guide | ||
order: 3 | ||
--- | ||
|
||
## Creating a Vue Instance | ||
## Membuat Permintaan Vue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Membuat Vue Instance
src/v2/guide/instance.md
Outdated
|
||
Every Vue application starts by creating a new **Vue instance** with the `Vue` function: | ||
Setiap aplikasi Vue dimulai dengan membuat **Permintaan Vue** dengan fungsi `Vue` seperti berikut : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vue instance
src/v2/guide/instance.md
Outdated
}) | ||
``` | ||
|
||
Although not strictly associated with the [MVVM pattern](https://en.wikipedia.org/wiki/Model_View_ViewModel), Vue's design was partly inspired by it. As a convention, we often use the variable `vm` (short for ViewModel) to refer to our Vue instance. | ||
Meskipun tidak dengan terkait dengan ketat dengan [Pola MVVM](https://en.wikipedia.org/wiki/Model_View_ViewModel), desain yang dimiliki Vue sebagian terinspirasi oleh konsep tersebut. Sebagai ketentuan, kita kadang menggunakan variabel `vm` ( kependekan dari ViewModel ) untuk mengacu pada permintaan Vue kami. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semua Vue Instance, jangan di terjemahkan.
Pakai italic font aja.
src/v2/guide/instance.md
Outdated
|
||
A Vue application consists of a **root Vue instance** created with `new Vue`, optionally organized into a tree of nested, reusable components. For example, a todo app's component tree might look like this: | ||
Ketika anda membuat permintaan Vue, anda mengirimkan **objek pilihan**. Sebagian besar dari panduan ini menjelaskan bagaimana anda bisa menggunakan opsi ini untuk membuat tindakan yang anda inginkan. Sebagai contoh, anda juga bisa melihat lihat daftar lengkap dari opsi ini di [Contoh API](../api/#Options-Data). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
objek pilihan --> obyek opsi (options object)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anda -> Anda, pakai capital A
src/v2/guide/instance.md
Outdated
Ketika anda membuat permintaan Vue, anda mengirimkan **objek pilihan**. Sebagian besar dari panduan ini menjelaskan bagaimana anda bisa menggunakan opsi ini untuk membuat tindakan yang anda inginkan. Sebagai contoh, anda juga bisa melihat lihat daftar lengkap dari opsi ini di [Contoh API](../api/#Options-Data). | ||
|
||
|
||
Sebuah aplikasi Vue terdiri dari **permintaan dasar Vue** yang dibuat dengan `new Vue`, secara opsional di atur ke dalam struktur pohon, komponen yang bisa digunakan ulang. Sebagai contoh, komponen aplikasi pengingat mungkin terliat seperti ini : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
root Vue instance -> akar (root) Vue instance
tree of nested gak usah di terjemahkan, pake italic aja.
terliat -> terlihat
src/v2/guide/instance.md
Outdated
@@ -31,42 +34,46 @@ Root Instance | |||
└─ TodoListStatistics | |||
``` | |||
|
|||
We'll talk about [the component system](components.html) in detail later. For now, just know that all Vue components are also Vue instances, and so accept the same options object (except for a few root-specific options). | |||
Kita akan membiacarakan tentang [sistem komponen](components.html) pada detail selanjunya. Sekarang, dengan hanya mengetahui bahwa semua komponen Vue juga adalah permintaan Vue, dan jug menerima opsi objek yang sama (kecuali untuk beberapa opsi pohon-spesifik). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
membiacarakan typo --> membicarakan
selanjunya typo --> selanjutnya
permintaan Vue -> Vue instance
jug -> juga
Thank you reviewnya mas @mazipan , sudah saya pr ulang yang baru 😉 |
src/v2/guide/instance.md
Outdated
|
||
```js | ||
var vm = new Vue({ | ||
// opsi | ||
}) | ||
``` | ||
|
||
Meskipun tidak dengan terkait dengan ketat dengan [Pola MVVM](https://en.wikipedia.org/wiki/Model_View_ViewModel), desain yang dimiliki Vue sebagian terinspirasi oleh konsep tersebut. Sebagai ketentuan, kita kadang menggunakan variabel `vm` ( kependekan dari ViewModel ) untuk mengacu pada permintaan Vue kami. | ||
Meskipun tidak dengan terkait dengan ketat dengan [Pola MVVM](https://en.wikipedia.org/wiki/Model_View_ViewModel), desain yang dimiliki Vue sebagian terinspirasi oleh konsep tersebut. Sebagai ketentuan, kita kadang menggunakan variabel `vm` ( kependekan dari ViewModel ) untuk mengacu pada *Vue Instance* kami. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meskipun tidak terkait ketat, typo kebanyakan keulang kata
src/v2/guide/instance.md
Outdated
|
||
A Vue application consists of a **root Vue instance** created with `new Vue`, optionally organized into a tree of nested, reusable components. For example, a todo app's component tree might look like this: | ||
Ketika anda membuat *Vue Instance*, anda mengirimkan **obyek opsi**. Sebagian besar dari panduan ini menjelaskan bagaimana anda bisa menggunakan opsi ini untuk membuat tindakan yang anda inginkan. Sebagai contoh, Anda juga bisa melihat lihat daftar lengkap dari opsi ini di [Contoh API](../api/#Options-Data). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semua kata anda, ganti dengan Anda pakai A capital
src/v2/guide/instance.md
Outdated
@@ -31,42 +34,46 @@ Root Instance | |||
└─ TodoListStatistics | |||
``` | |||
|
|||
We'll talk about [the component system](components.html) in detail later. For now, just know that all Vue components are also Vue instances, and so accept the same options object (except for a few root-specific options). | |||
Kita akan membicarakan tentang [sistem komponen](components.html) pada detail selanjutnya. Sekarang, dengan hanya mengetahui bahwa semua komponen Vue juga adalah *Vue Instance*, dan juga menerima opsi objek yang sama (kecuali untuk beberapa opsi *tree of nested*). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opsi objek -> objek opsi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mas @mazipan , bagaimana kalau pilihan objek ?
src/v2/guide/instance.md
Outdated
When a Vue instance is created, it adds all the properties found in its `data` object to Vue's **reactivity system**. When the values of those properties change, the view will "react", updating to match the new values. | ||
## Data dan Metode | ||
|
||
Ketika *Vue Instance* dibuat, ini menambah semua properti yang ditemukan di dalam objek `data` ke Vue's **sistem reaktifitas**. Ketika nilai dari properti tersebut berubah, tampilanya akan "bereaksi", memperbarui untuk mencocokan dengan nilai yang baru. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ke sistem reaktif milik Vue
src/v2/guide/instance.md
Outdated
var vm = new Vue({ | ||
data: data | ||
}) | ||
|
||
// Getting the property on the instance | ||
// returns the one from the original data | ||
// Mendapat properti dari permintaan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Permintaan-> instance
src/v2/guide/instance.md
Outdated
@@ -78,7 +85,8 @@ data: { | |||
} | |||
``` | |||
|
|||
The only exception to this being the use of `Object.freeze()`, which prevents existing properties from being changed, which also means the reactivity system can't _track_ changes. | |||
Satu satunya pengecualian untuk ini adalah menggunakan `Object.freeze()`, yang mencegah properti untuk dirubah, yang juga berarti reaktifitas sistem yang tidak bisa _menarik_ perubahan. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dirubah-> diubah
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Track, bukan menarik terjemahannya tapi melacak
src/v2/guide/instance.md
Outdated
@@ -96,12 +104,13 @@ new Vue({ | |||
```html | |||
<div id="app"> | |||
<p>{{ foo }}</p> | |||
<!-- this will no longer update `foo`! --> | |||
<!-- ini tidak akan mengubah `foo`! --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tidak akan lagi
src/v2/guide/instance.md
Outdated
<button v-on:click="foo = 'baz'">Change it</button> | ||
</div> | ||
``` | ||
|
||
In addition to data properties, Vue instances expose a number of useful instance properties and methods. These are prefixed with `$` to differentiate them from user-defined properties. For example: | ||
Untuk tambahan ke data properti, *Vue Instance* menunjukan sejumlah properti permintaan dan metode yang berguna. Ini juga diawalai dengan `$` untuk membedakan mereka dari properti yang ditetapkan-pengguna. Sebagai contoh: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Permintaan-> instance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditetapkan pengguna, gak perlu dash lagi
src/v2/guide/instance.md
Outdated
@@ -113,39 +122,41 @@ var vm = new Vue({ | |||
vm.$data === data // => true | |||
vm.$el === document.getElementById('example') // => true | |||
|
|||
// $watch is an instance method | |||
// $watch adalah metode permintaan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Permintaan-> instance
src/v2/guide/instance.md
Outdated
vm.$watch('a', function (newValue, oldValue) { | ||
// This callback will be called when `vm.a` changes | ||
// Panggilan balik ini akan di panggil ketika `vm.a` berubah |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Panggilan balik (callback)
src/v2/guide/instance.md
Outdated
}) | ||
``` | ||
|
||
Although not strictly associated with the [MVVM pattern](https://en.wikipedia.org/wiki/Model_View_ViewModel), Vue's design was partly inspired by it. As a convention, we often use the variable `vm` (short for ViewModel) to refer to our Vue instance. | ||
Meskipun tidak dengan terkait ketat dengan [Pola MVVM](https://en.wikipedia.org/wiki/Model_View_ViewModel), desain yang dimiliki Vue sebagian terinspirasi oleh konsep tersebut. Sebagai ketentuan, kita kadang menggunakan variabel `vm` ( kependekan dari ViewModel ) untuk mengacu pada *Vue Instance* kami. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Masih berulang kata2nya.
Harusnya -> Meskipun tidak terkait ketat dengan
src/v2/guide/instance.md
Outdated
Ketika Anda membuat *Vue Instance*, Anda mengirimkan **obyek pilihan**. Sebagian besar dari panduan ini menjelaskan bagaimana Anda bisa menggunakan pilihan ini untuk membuat tindakan yang Anda inginkan. Sebagai contoh, Anda juga bisa melihat lihat daftar lengkap dari pilihan ini di [Contoh API](../api/#Options-Data). | ||
|
||
|
||
Sebuah aplikasi Vue terdiri dari **permintaan dasar Vue** yang dibuat dengan `new Vue`, secara opsional di atur ke dalam akar (root) *Vue Instance*, komponen yang bisa digunakan ulang. Sebagai contoh, komponen aplikasi pengingat mungkin terlihat seperti ini : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Permintaan -> instance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
berarti saya ubah semua kata permintaan jadi instance
src/v2/guide/instance.md
Outdated
When a Vue instance is created, it adds all the properties found in its `data` object to Vue's **reactivity system**. When the values of those properties change, the view will "react", updating to match the new values. | ||
## Data dan Metode | ||
|
||
Ketika *Vue Instance* dibuat, ini menambah semua properti yang ditemukan di dalam objek `data` ke **sistem reaktif** milok Vue. Ketika nilai dari properti tersebut berubah, tampilanya akan "bereaksi", memperbarui untuk mencocokan dengan nilai yang baru. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Milok typo
src/v2/guide/instance.md
Outdated
|
||
Each Vue instance goes through a series of initialization steps when it's created - for example, it needs to set up data observation, compile the template, mount the instance to the DOM, and update the DOM when data changes. Along the way, it also runs functions called **lifecycle hooks**, giving users the opportunity to add their own code at specific stages. | ||
## Siklus Hidup Pengait Permintaan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Permintaan->Instance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Siklus Hidup Pengait (Lifecycle Hook)
Thank you atas reviewnya mas @mazipan 🚀 |
Terima kasih kembali atas kontribusinya mas @iqbalaqaba |
Hasil translate bahasa indonesia dari Vue Instance 🚀