Open anderspitman opened 1 month ago
@anderspitman I like the app structure you proposed. It's worth thinking about it.
Could you give me more details? For example, are you saying that moving the main
section in index.html to main_page.js, and make it a web component <iobio-main-page>
? Then we put all the routing logic into the app.js(another web component)?
Yeah that's pretty much what I had in mind. I don't think we should do it now, but if we need to make changes to this code in the future, that might be a good opportunity to refactor it to be more like this.
The current router works well and is pretty simple, but it might be work refactoring it to be cleaner. I think we could create a
<iobio-app>
component that would work like this:That would be pretty much the entire index.html for bam.iobio. Most of the existing index.html code would move into main_page.js.