Conductor
Dead simple routing 'plugin' for Choo that simplifies views and loads data for you automatically. No dependencies!
Depends on choo PR#553, but you can use jonjaques/choo#feature/add-route-event
in the meantime.
Currently does two things:
- Allows you to use a
layout
view which wraps all child views - Views can define a
loadData(state, emit)
member which is called on page load and onroute
events (added by PR referenced above)
const app = // app.use some stuffappappapp { return html`...`} todoList { } { return html`...`} todoDetail { } { return html` `}