How to do routing in owl js version 2.2.10 because router import gives undefined
Hamzaansari15 opened this issue · 2 comments
Hamzaansari15 commented
How to do routing in owl js version 2.2.10 because router import gives undefined
sdegueldre commented
The router is no longer a part of Owl as it doesn't require access to Owl internals to implement, it can be implemented in user code. Here is an example implementation in Odoo:
https://github.com/odoo/odoo/blob/17.0/addons/pos_self_order/static/src/app/router.js
https://github.com/odoo/odoo/blob/17.0/addons/pos_self_order/static/src/app/self_order_index.xml
hamza-strugbits commented
So, I write all mention code for creating route in owl