Here’s the case: there are two apps, one for defining forms with some specific fields (like those form builders from wordpress). The other app renders the forms using the definitions.
Both have to render the forms: the first for testing how the form looks and works and the second to present it to the user.
First temptation is to use components, but to choose the name of the components based on data seems unfeasible.
For this my solution is that for each type of element in the form there will be a view-model with a view, so we can include them with the compose clause.
This works fine as ever, though as I need to share this among two apps, my idea was to make a plugin for this.
When including these views and viewmodels from the plugin, I couldn’t instruct aurelia how to find them.
Hope this explains a little better the issue.