This example shows how to implement routing in ExtJS 5 application. The application uses MVVM architecture and the routing is implemented using MVC controller.
Important note: The application runs in iframe so you do not see how url changes when selecting customers in the grid or view. However, browser’s back and forward buttons work to navigate within the application.
If you want to see how url changes open the application in new window.
- the application uses MVVM architecture and data binding
- customers can be selected in the grid or data view, the selection is synchronized
- map uses Google geocoder to find location from the address
- uses font icons
- beginners warning: the application uses advanced techniques
This approach to routing is suitable for applications that do not have a definite main container (viewport). For viewport-based application there is another, better approach: Routing in ExtJS 5 using MVVM.
The application consists of many files so only sources relevant to routing are listed for the sake of simplicity. They are:
app/view/MainModel.js app/view/MainController.js app/controller/Router.jsIf you want to see the example code, login or sign-up. Free membership is available.
- Ext, Angular, React, and Vue - 27. June 2019
- The Site Resurgence - 11. February 2018
- Configuring ViewModel Hierarchy - 19. June 2015