Hi guys! Do you see a way of dynamically (and conditionally) adding a router view an element?
My use case is the following:
My application has pages: custom elements whose viewmodel extend a base class with a few page-related features.
It also has components: custom elements that extend a base class with a few non-page-related features.
In all my pages templates, I always add a router view at the bottom
I would like to automate this part in my BasePage class so it cannot be forgotten or misspelled or whatever.
I thought about using templatingengine.enhance() but I stumbled upon ViewFactory.compile and I’m not sure which would be more appropriate to the task.