# Dynamic slide height

**URL:** <https://forum.ionicframework.com/t/dynamic-slide-height/63891>\
**Category:** ionic-v3\
**Created:** [September 19, 2016, 9:42pm UTC](https://forum.ionicframework.com/t/dynamic-slide-height/63891 "2016-09-19T21:42:26Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![ryanlogsdon](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ryanlogsdon/32/103208_2.png) [@ryanlogsdon](https://forum.ionicframework.com/u/ryanlogsdon)\
**Post date:** [January 25, 2017, 2:32am UTC](https://forum.ionicframework.com/t/dynamic-slide-height/63891/16 "2017-01-25T02:32:49Z")

</div>

Here is the RC5 solution.

**HTML**

```
    <div id="wrapper">
        <ion-slides #slider>
            <ion-slide *ngFor="let robot of _robots">
                your robots here
            </ion-slide>
        </ion-slides>
    </div>

```

You wil need the _div_ wrapper for when the slides take up more than the length of the screen.

**TS**

1. import _ViewChild_ from _@angular/core_

2. add this line to your class (anywhere is fine)

3. add this function to the class

Thank you, Ionic Team, for making so many changes that the solution is this simple now!

---

_[View the full topic](https://forum.ionicframework.com/t/dynamic-slide-height/63891)._
