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
* Link to custom-elements-everywhere.com (vuejs#2039)
The site <https://custom-elements-everywhere.com> runs a suite of tests against a framework to
identify interoperability issues, and highlight potential fixes already implemented in other frameworks.
This is a great way to give more confidence while choosing Vue.
* Updated Nuxtent link (vuejs#2041)
* Fix wrong statement about arrow function and bound this (vuejs#2040)
* Fix wrong statement about arrow function and bound this
Stating that arrow functions are bound to it's parent `this` is wrong, arrow functions does not have a `this` at all. More: https://twitter.com/getify/status/1101521219243966466
* Update src/v2/guide/instance.md
Co-Authored-By: KadoBOT <ricardo.ambrogi@gmail.com>
* Update instance.md
Remove unnecessary `a`
* fix: routing translation
* fix: fixed, as suggested by @nusendra and @mazipan
Copy file name to clipboardExpand all lines: src/v2/guide/routing.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ type: guide
4
4
order: 501
5
5
---
6
6
7
-
## Official Router
7
+
## *Router* Resmi
8
8
9
-
For most Single Page Applications, it's recommended to use the officially-supported [vue-router library](https://github.com/vuejs/vue-router). For more details, see vue-router's [documentation](https://router.vuejs.org/).
9
+
Bagi sebagian besar *Single Page Applications*, direkomendasikan untuk menggunakan [pustaka vue-router](https://github.com/vuejs/vue-router) yang resmi didukung VueJS. Lebih detailnya, lihat pada laman [dokumentasi](https://router.vuejs.org/) vue-router.
10
10
11
-
## Simple Routing From Scratch
11
+
## *Routing* Simpel dari Awal
12
12
13
-
If you only need very simple routing and do not wish to involve a full-featured router library, you can do so by dynamically rendering a page-level component like this:
13
+
Jika Anda hanya membutuhkan *routing* yang sangat simpel dan tidak melibatkan fitur lengkap dari pustaka *router*, Anda bisa melakukannya dengan me-render secara dinamis sebuah komponen yang berperan sebagai halaman seperti berikut :
14
14
15
15
```js
16
16
constNotFound= { template:'<p>Page not found</p>' }
@@ -36,8 +36,8 @@ new Vue({
36
36
})
37
37
```
38
38
39
-
Combined with the HTML5 History API, you can build a very basic but fully-functional client-side router. To see that in practice, check out [this example app](https://github.com/chrisvfritz/vue-2.0-simple-routing-example).
39
+
Dikombinasikan dengan *HTML5 History API*, Anda dapat membuat *client-side router* yang sangat mendasar namun berfungsi penuh. Untuk melihat bagaimana cara mengimplementasikannya, silakan cek [contoh aplikasi ini](https://github.com/chrisvfritz/vue-2.0-simple-routing-example)
40
40
41
-
## Integrating 3rd-Party Routers
41
+
## Integrasi dengan *Router* pihak ketiga
42
42
43
-
If there's a 3rd-party router you prefer to use, such as [Page.js](https://github.com/visionmedia/page.js) or [Director](https://github.com/flatiron/director), integration is [similarly easy](https://github.com/chrisvfritz/vue-2.0-simple-routing-example/compare/master...pagejs). Here's a [complete example](https://github.com/chrisvfritz/vue-2.0-simple-routing-example/tree/pagejs)using Page.js.
43
+
Jika Anda lebih nyaman menggunakan pustaka *router* pihak ketiga, seperti [Page.js](https://github.com/visionmedia/page.js) or [Director](https://github.com/flatiron/director), integrasinya [mudah, tidak berbeda jauh](https://github.com/chrisvfritz/vue-2.0-simple-routing-example/compare/master...pagejs). Berikut ini [contoh lengkap](https://github.com/chrisvfritz/vue-2.0-simple-routing-example/tree/pagejs)menggunakan *Page.js*.
0 commit comments