There are two things I want to achieve. Both would require a smart use of components.
First, a question about Component-binding in general: In every article I've seen, a directive-tag was used in a template, to later bind a component. However, due to my two problems, I can't put my directives in the template beforehand - Instead, I need to do so dynamically.
I have a list of "things". A "thing" is only the parent however, and it has many children - Meaning there are multiple types of things, each with different values. This made me create a Component for each thing: Each with its own template as well. However, I also want to display a list of those things. I don't know them beforehand, though: I'm fetching them from a server. I don't know their types or the amount of things before having gotten the data. I now want to list each "thing" by adding a Component of the right type each time. How would I properly add the bindings to dynamically load the components?
My users can "style" their profile by using different modals. The resulting layout is fetched from a server. Meaning that, again, I do not know the amount of modals or the type of modal beforehand. How will I now be able to include them properly?
TL;DR How do I dynamically bind components without having set up the right amount of bindings with their respective types?