Skip to content

Translated 'routing.md' #29

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

Merged
merged 24 commits into from
Aug 27, 2020
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4d887d0
Translate routing.md to Arabic
HouariZegai Aug 14, 2020
c7a467a
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
4bf9fc2
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
f1b4a06
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
72f7264
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
56e7a08
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
c4302fa
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
47b8ba8
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
6e7d5ac
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
5bdc32a
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
11d633e
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
c2c47a0
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
c254e66
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
4094408
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
436e2cb
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
bb3838d
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
51c4cab
Update src/v2/guide/routing.md
HouariZegai Aug 14, 2020
af3453a
Update src/v2/guide/routing.md
HouariZegai Aug 15, 2020
daa4fd2
Update src/v2/guide/routing.md
HouariZegai Aug 22, 2020
ec7872c
Update src/v2/guide/routing.md
HouariZegai Aug 22, 2020
3ae851a
Update src/v2/guide/routing.md
HouariZegai Aug 22, 2020
02ef451
Update src/v2/guide/routing.md
HouariZegai Aug 22, 2020
9acd8c2
Update src/v2/guide/routing.md
HouariZegai Aug 22, 2020
7d8e380
Update routing.md
HouariZegai Aug 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/v2/guide/routing.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
title: Routing
title: التوجيه
type: guide
order: 501
---

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

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

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

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

``` js
const NotFound = { template: '<p>Page not found</p>' }
Expand All @@ -36,8 +36,8 @@ new Vue({
})
```

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

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

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.
إذا كنت تفضل استخدام حزمة توجيه اخرى ، مثل [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.