Hi,
I am newbie of ionic, i can’t figure out how to get the height of slider box immediately.
here is the codes:
<ion-slide-box on-slide-changed="slideHasChanged($index)" does-continue="true" auto-play="true" slide-interval="4500">
<ion-slide>
<a href="#">
<img src="img/trial/example/slider-1.jpg" alt="">
</a>
</ion-slide>
</ion-slide-box>
js:
ionic.DomUtil.ready(function(){
console.log($('.slider').height());
});
I can’t get the correct height of the slidebox, it always returns the wrong value.
plz help me. thx.