Skip to content

Commit 1296fba

Browse files
Merge pull request #29 from HouariZegai/master
Translated 'routing.md'
2 parents 8d9588f + 7d8e380 commit 1296fba

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/v2/guide/routing.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: Routing
2+
title: التوجيه
33
type: guide
44
order: 501
55
---
66

7-
## Official Router
7+
# حزمة التوجيه الرسمية
88

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+
بالنسبة لمعظم تطبيقات الصفحة الواحدة ، يوصى باستخدام [حزمة التوجيه المدعمة رسمياً vue-router](https://github.com/vuejs/vue-router). لمزيد من التفاصيل، انظر إلى [وثائق حزمة التوجيه](https://router.vuejs.org/).
1010

11-
## Simple Routing From Scratch
11+
## موجه بسيط من الصفر
1212

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+
إذا كنت تحتاج فقط إلى موجه بسيط للغاية ولا ترغب في تضمين مكتبة التوجيه كاملة الميزات ، فيمكنك القيام بذلك عن طريق عرض مكون على مستوى الصفحة ديناميكيًا مثل هذا:
1414

1515
``` js
1616
const NotFound = { template: '<p>Page not found</p>' }
@@ -36,8 +36,8 @@ new Vue({
3636
})
3737
```
3838

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+
بالاقتران مع HTML5 History API ، يمكنك إنشاء موجه بسيط ولكنه يعمل بكامل طاقته من جانب العميل. لرؤية ذلك عمليًا ، تحقق من [مثال التطبيق هذا](https://github.com/chrisvfritz/vue-2.0-simple-routing-example).
4040

41-
## Integrating 3rd-Party Routers
41+
## الدمج مع حزم التوجيه الاخرى
4242

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+
إذا كنت تفضل استخدام حزمة توجيه اخرى ، مثل [Page.js](https://github.com/visionmedia/page.js) أو [Director](https://github.com/flatiron/director)، التكامل [سهل بشكل مشابه](https://github.com/chrisvfritz/vue-2.0-simple-routing-example/compare/master...pagejs). إليك [مثال كامل](https://github.com/chrisvfritz/vue-2.0-simple-routing-example/tree/pagejs باستخدام Page.js.

0 commit comments

Comments
 (0)