Ion Slides set InitialSlide


Is there a way to set the InitialSlide of an ion-slides based on NgIF?


Not sure what you mean, could you explain more and share some code of what you have tried?


First i made an http get request, the result of that request like this that return an array list

This way the InitialSlide would always be the first slide. Is there a way to set the third slide or the five as the initialslide based of an specific field of one element from the array list?
For example if the second element of the array list has in the field “active” the value 2 set this as the initial slide.


Any ideas @mhartington ?