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
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -709,25 +709,25 @@ type: api
709
709
710
710
-**Lihat juga:**[Instance Methods / Data - vm.$watch](#vm-watch)
711
711
712
-
## Options / DOM
712
+
## Opsi / DOM
713
713
714
714
### el
715
715
716
716
-**Tipe:**`string | Element`
717
717
718
-
-**Batasan:**only respected in instance creation via`new`.
718
+
-**Batasan:**hanya berlaku pada pembuatan _instance_ melalui`new`.
719
719
720
720
-**Detail:**
721
721
722
-
Provide the Vue instance an existing DOM element to mount on. It can be a CSS selector string or an actual HTMLElement.
722
+
Berikan _instance_ Vue sebuah elemen DOM yang sudah ada untuk dipasangkan. Ini bisa berupa kata pemilih CSS atau sebuah HTMLElement sesungguhnya.
723
723
724
-
After the instance is mounted, the resolved element will be accessible as`vm.$el`.
724
+
Setelah _instance_ sudah dipasangkan, elemen akan dapat diakses sebagai`vm.$el`.
725
725
726
-
If this option is available at instantiation, the instance will immediately enter compilation; otherwise, the user will have to explicitly call `vm.$mount()`to manually start the compilation.
726
+
Jika opsi ini ada saat pembuatan _instance_, _instance_ akan langsung menjalankan kompilasi; jika tidak, pengguna harus memanggil `vm.$mount()`secara eksplisit untuk menjalankan kompilasi secara manual.
727
727
728
-
<pclass="tip">The provided element merely serves as a mounting point. Unlike in Vue 1.x, the mounted element will be replaced with Vue-generated DOM in all cases. It is therefore not recommended to mount the root instance to `<html>` or `<body>`.</p>
728
+
<pclass="tip">Elemen yang diberikan hanya menjadi titik pemasangan. Tidak seperti Vue 1.x, elemen yang dipasangkan akan digantikan dengan DOM yang dihasilkan oleh Vue dalam semua kasus. Karena itu tidak disarankan untuk memasangkan instance akar ke `<html>` atau `<body>`.</p>
729
729
730
-
<pclass="tip">If neither `render` function nor `template` option is present, the in-DOM HTML of the mounting DOM element will be extracted as the template. In this case, Runtime + Compiler build of Vue should be used.</p>
730
+
<pclass="tip">Jika fungsi `render` maupun opsi `template` tidak diberikan, DOM HTML yang di dalam dari elemen DOM yang dipasangkan akan diekstrak sebagai template. Dalam kasus ini, Runtime + Compiler build Vue harus digunakan.</p>
A string template to be used as the markup for the Vue instance. The template will **replace**the mounted element. Any existing markup inside the mounted element will be ignored, unless content distribution slots are present in the template.
742
+
Templat string yang akan digunakan sebagai markup untuk _instance_ Vue. Template akan **menggantikan**elemen yang dipasang. Markup apa pun yang ada di dalam elemen yang dipasang akan diabaikan, kecuali jika slot distribusi konten ada dalam template.
743
743
744
-
If the string starts with `#`it will be used as a querySelector and use the selected element's innerHTML as the template string. This allows the use of the common `<script type="x-template">`trick to include templates.
744
+
Jika kata dimulai dengan `#`itu akan digunakan sebagai querySelector dan menggunakan innerHTML elemen yang dipilih sebagai string template. Ini memungkinkan penggunaan trik umum `<script type =" x-template">`untuk menyertakan templat.
745
745
746
-
<pclass="tip">From a security perspective, you should only use Vue templates that you can trust. Never use user-generated content as your template.</p>
746
+
<pclass="tip">Dari perspektif keamanan, Anda hanya boleh menggunakan templat Vue yang dapat Anda percayai. Jangan pernah menggunakan konten yang dibuat pengguna sebagai templat Anda.</p>
747
747
748
-
<pclass="tip">If render function is present in the Vue option, the template will be ignored.</p>
748
+
<pclass="tip">Jika fungsi _render_ ada dalam opsi Vue, _template_ akan diabaikan.</p>
An alternative to string templates allowing you to leverage the full programmatic power of JavaScript. The render function receives a`createElement`method as it's first argument used to create `VNode`s.
760
+
Alternatif untuk templat string yang memungkinkan Anda memanfaatkan kekuatan penuh program JavaScript. Fungsi render menerima sebuah metode`createElement`sebagai argumen pertama yang digunakan untuk membuat `VNode`.
761
761
762
-
If the component is a functional component, the render function also receives an extra argument `context`, which provides access to contextual data since functional components are instance-less.
762
+
Jika komponen merupakan sebuah komponen fungsional, fungsi render juga menerima ekstra argumen `context`, yang memberikan aksesk pada data kontekstual karena komponen fungsional tidak memiliki _instance_.
763
763
764
-
<pclass="tip">The `render` function has priority over the render function compiled from `template` option or in-DOM HTML template of the mounting element which is specified by the `el` option.</p>
764
+
<pclass="tip">Fungsi `render` memiliki prioritas di atas fungsi render yang dikompilasi dari opsi `template` atau templat HTML dalam DOM dari elemen pemasangan yang ditentukan oleh opsi` el`..</p>
Provide an alternative render output when the default `render`function encounters an error. The error will be passed to `renderError`as the second argument. This is particularly useful when used together with hot-reload.
778
+
Memberikan sebuah keluaran _render_ alternatif ketika fungsi `render`standar menemukan kesalahan. Kesalahan akan diteruskan ke `renderError`sebagai argumen kedua. Ini sangat berguna saat digunakan bersama dengan _hot-reload_.
0 commit comments