- Impara
-
Ecosistema
Aiuto
Tooling
Librerie Core
Novità
Risorse
- Team
- Supporta Vue
- Traduzioni
Diventa uno Sponsor
Guide
Essenziale
- Installation
- Introduction
- The Vue Instance
- Template Syntax
- Computed Properties and Watchers
- Class and Style Bindings
- Conditional Rendering
- List Rendering
- Event Handling
- Form Input Bindings
- Components
Animazioni e transizioni
- Enter/Leave & List Transitions
- State Transitions
Riusabilità e Composizione
- Mixins
- Custom Directives
- Render Functions & JSX
- Plugins
- Filters
Tooling
- Production Deployment
- Single File Components
- Unit Testing
- TypeScript Support
Scaling Up
- Routing
- State Management
- Server-Side Rendering
Internals
- Reactivity in Depth
Migrazioni
- Migration from Vue 1.x
- Migration from Vue Router 0.7.x
- Migration from Vuex 0.6.x to 1.0
Meta
- Comparison with Other Frameworks
- Join the Vue.js Community!
- Meet the Team
Routing
Official Router
For most Single Page Applications, it’s recommended to use the officially-supported vue-router library. For more details, see vue-router’s documentation.
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:
const NotFound = { template: '<p>Page not found</p>' } |
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.
Integrating 3rd-Party Routers
If there’s a 3rd-party router you prefer to use, such as Page.js or Director, integration is similarly easy. Here’s a complete example using Page.js.
Hai visto degli errori o vorresti contriuire alla repository?
Modifica questa pagina in Github!