RepositoryJavaScript
VU

vuejs/vue-router

🚦 The official router for Vue 2

18.9ksao
5.0kfork
66issue
7lượt xem

🧭 vue-router: Router chính thức dành cho Vue 2

Bộ công cụ định tuyến mạnh mẽ, tích hợp sẵn với Vue 2.

vue-router là router chính thức được thiết kế riêng cho Vue 2.0, phần của hệ sinh thái Vue.js. Dự án cung cấp các tính năng như nested routes, route params, lazy loading, navigation guards và programmatic navigation, giúp xây dựng các ứng dụng single-page hoàn chỉnh.

✨ Điểm nổi bật

  • Nested Routes: Hỗ trợ cấu trúc route lồng nhau phức tạp.
  • Lazy Loading: Tải thành phần chỉ khi cần thiết để tối ưu hiệu năng.
  • Navigation Guards: Kiểm soát truy cập và điều hướng bằng middleware.
  • Route Params: Truyền dữ liệu linh hoạt qua URL.
  • Programmatic Navigation: Điều hướng bằng JavaScript trong code.
  • Hash & History Mode: Hỗ trợ cả hai chế độ URL tùy chọn.

💡 Vì sao đáng chú ý

vue-router được tích hợp sâu với Vue 2, cung cấp API trực quan và hiệu suất cao. Với hệ thống plugin và middleware mạnh mẽ, nó giúp quản lý trạng thái điều hướng một cách rõ ràng, phù hợp cho các ứng dụng doanh nghiệp hoặc dự án cá nhân cần cấu trúc lớn.


#VueRouter #Vue2 #JavaScript #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
vuejs/vue

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

212.5k
Oct 10, 2024
RepositoryJavaScript
react/react

The library for web and native user interfaces.

252.9k
Nov 21, 2026
RepositoryJavaScript
trekhleb/javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

196.7k
Jul 26, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

475.2k
Nov 23, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.4k
Nov 20, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.3k
Nov 16, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.9k
Oct 31, 2026
RepositoryJavaScript
airbnb/javascript

JavaScript Style Guide

148.0k
Apr 16, 2026
Repository
justjavac/free-programming-books-zh_CN

:books: 免费的计算机编程类中文书籍,欢迎投稿

119.7k
Jul 29, 2026