Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

Create slides dynamically

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>