Answer the question
In order to leave comments, you need to log in
How to create dynamic components in Angular 2+?
Maybe I don't understand something, but I'm in a stupor guys. Now a task has come from the customer. Allegedly, the user interface should be easy to configure, that is, the structure comes from the server:
1st option
{
"rows": [
{"l12" : "slider-component"},
{"l6" : "process-component"},
{"l6" : "order-component"},
{"l12": "footer-component"}
]
};
{
"rows": [
{"l12" : "slider-component"},
{"l6" : "search-component"},
{"l12": "footer-component"}
]
};
Answer the question
In order to leave comments, you need to log in
I won’t answer specifically, but what you need is exactly implemented in the Ionic Framework (c 3.2.0) in lazy loading.
Pages are lazy loaded by string class name. Each page has its own module. You can see the source.
I think something similar should be in a standard router. This is how https://DebtsTracker.io works
for me .
Look here)
https://angular.io/docs/ts/latest/cookbook/dynamic...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question