odoo/owl

How to do routing in owl js version 2.2.10 because router import gives undefined

Hamzaansari15 opened this issue · 2 comments

How to do routing in owl js version 2.2.10 because router import gives undefined

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

So, I write all mention code for creating route in owl