odoo / owl

OWL: A web framework for structured, dynamic and maintainable applications
https://odoo.github.io/owl/
Other
1.1k stars 332 forks source link

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

Closed Hamzaansari15 closed 3 months ago

sdegueldre commented 3 months ago

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 3 months ago

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