Hi everyone, I have a problem.
I have a blank page and I would like to put one or more slides based on the response from the web service.
I inserted a div in the page with the [innerHTML] attribute
<div [innerHTML]="variableTextHtml"></div>
and into file.ts I call a webservice and I set the variableTextHtml with:
<ion-slides pager='true' autoplay="5000" loop="true" speed="3000">
<ion-slide>
<h1>Slide 1</h1>
</ion-slide>
etc.. etc..
When i run the app, slide doesn’t work.
How can I dynamically add components to the app’s html page?
Thank you
1 post - 1 participant