# Components Slider

**URL:** <https://forum.ionicframework.com/t/components-slider/115701>\
**Category:** ionic-v3\
**Created:** [December 18, 2017, 12:14pm UTC](https://forum.ionicframework.com/t/components-slider/115701 "2017-12-18T12:14:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NilLlisterri](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nilllisterri/32/115893_2.png) [@NilLlisterri](https://forum.ionicframework.com/u/NilLlisterri)\
**Post date:** [December 18, 2017, 12:14pm UTC](https://forum.ionicframework.com/t/components-slider/115701/1 "2017-12-18T12:14:11Z")

</div>

Hello!

I’m trying to do a slider that will contain pages.

Right now the slider looks like this:

```auto
<ion-slides>
    <ion-slide>
        Html content
    </ion-slide>
<ion-slides>

```

I’m trying to make something like this:

```auto
<ion-slides>
    <ion-slide>
        <MyPage>
    </ion-slide>
<ion-slides>

```

MyPage is:

```auto
import { Component } from '@angular/core';

@Component({
  selector: 'my-page',
  templateUrl: 'my-page.html'
})
export class MyPage {
  constructor() {}
}

```

Is there any way to do something like that?

---

<div class="post-metadata">

**Author:** ![MattE](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/matte/32/66712_2.png) [@MattE](https://forum.ionicframework.com/u/MattE)\
**Post date:** [December 18, 2017, 12:19pm UTC](https://forum.ionicframework.com/t/components-slider/115701/2 "2017-12-18T12:19:47Z")

</div>

Have you tried it already?  
Using a component in an ion-slide shoudn’t be a problem

---

<div class="post-metadata">

**Author:** ![NilLlisterri](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nilllisterri/32/115893_2.png) [@NilLlisterri](https://forum.ionicframework.com/u/NilLlisterri)\
**Post date:** [December 18, 2017, 12:23pm UTC](https://forum.ionicframework.com/t/components-slider/115701/3 "2017-12-18T12:23:55Z")

</div>

I havent tried it yet, I don’t know how the syntax should be.  
Putting `<MyPage>` inside the slide was just an example of what I want to accomplish.

---

<div class="post-metadata">

**Author:** ![MattE](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/matte/32/66712_2.png) [@MattE](https://forum.ionicframework.com/u/MattE)\
**Post date:** [December 18, 2017, 2:19pm UTC](https://forum.ionicframework.com/t/components-slider/115701/4 "2017-12-18T14:19:19Z")

</div>

Start with `$ ionic g component myComponent`

This will generate all the necessary files and links in your project.  
After that `<myComponent></myComponent>` will work in your ion-slides.

---

<div class="post-metadata">

**Author:** ![NilLlisterri](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nilllisterri/32/115893_2.png) [@NilLlisterri](https://forum.ionicframework.com/u/NilLlisterri)\
**Post date:** [December 19, 2017, 8:00am UTC](https://forum.ionicframework.com/t/components-slider/115701/5 "2017-12-19T08:00:36Z")

</div>

Whoa, I never though it would be that intuitive.  
Thanks for your help!

---

<div class="post-metadata">

**Author:** ![felix9607](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@felix9607](https://forum.ionicframework.com/u/felix9607)\
**Post date:** [December 19, 2017, 8:50am UTC](https://forum.ionicframework.com/t/components-slider/115701/6 "2017-12-19T08:50:13Z")

</div>

I have another little issue with `ion-slides`.

Here is [my Stackoverflow](https://stackoverflow.com/questions/47766631/ion-slides-resize-doesn-t-work).

Sadly no replies, maybe you have an clue… 🙂

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:59pm UTC](https://forum.ionicframework.com/t/components-slider/115701/7 "2021-07-19T21:59:05Z")

</div>

Closed on July 19, 2021, 9:59pm UTC


