Dynamically load ionic component

I have an issue with loading ionic components dynamically according to my API response.
Can anybody help me on this.
“title”:“sample(if required)”,
According to “type”:“drop_down” the HTML control should be set.Type may be any.

Thanks in advance…


maybe like

<whatever  *ngIf='item.type== "bla"' ></whatever  >
<whatever2  *ngIf='item.type== "blub"' ></whatever2  >

or any other similar structural directive.

Best regards, anna-liebt

@anna_liebt thanks for your reply.But actually i meant not like this.
for Eg:if my type is drop down,i wanna show ion select.Similarly i have to load components according to the type value.Also these all are in a single array ‘values’.