# Ionic3 and custom components

**URL:** <https://forum.ionicframework.com/t/ionic3-and-custom-components/90065>\
**Category:** ionic-v3\
**Created:** [May 12, 2017, 4:12pm UTC](https://forum.ionicframework.com/t/ionic3-and-custom-components/90065 "2017-05-12T16:12:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![odorakel](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/odorakel/32/101000_2.png) [@odorakel](https://forum.ionicframework.com/u/odorakel)\
**Post date:** [May 12, 2017, 4:12pm UTC](https://forum.ionicframework.com/t/ionic3-and-custom-components/90065/1 "2017-05-12T16:12:01Z")

</div>

Hey there,

I’m currently trying to migrate my Ionic2 application to Ionic3, because I would like to make use of the lazy loading feature - because I really need this feature for the web version of the app…

…but all of my custom components doesn’t work anymore - could someone provide an example of a lazy loading page and a custom component?

Thanks,  
Oliver

---

<div class="post-metadata">

**Author:** ![AaronSterling](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AaronSterling](https://forum.ionicframework.com/u/AaronSterling)\
**Post date:** [May 12, 2017, 4:13pm UTC](https://forum.ionicframework.com/t/ionic3-and-custom-components/90065/2 "2017-05-12T16:13:36Z")

</div>

> <https://github.com/mhartington/star-track-ionic/blob/master/src/components/ion-music-card/ion-music-card.module.ts>

---

<div class="post-metadata">

**Author:** ![richardshergold](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/richardshergold/32/91823_2.png) [@richardshergold](https://forum.ionicframework.com/u/richardshergold)\
**Post date:** [May 12, 2017, 4:13pm UTC](https://forum.ionicframework.com/t/ionic3-and-custom-components/90065/3 "2017-05-12T16:13:54Z")

</div>

Have a look [here](http://blog.ionic.io/ionic-and-lazy-loading-pt-1/) and [here](http://blog.ionic.io/ionic-and-lazy-loading-pt-2/) for more info.

---

<div class="post-metadata">

**Author:** ![odorakel](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/odorakel/32/101000_2.png) [@odorakel](https://forum.ionicframework.com/u/odorakel)\
**Post date:** [May 12, 2017, 4:17pm UTC](https://forum.ionicframework.com/t/ionic3-and-custom-components/90065/4 "2017-05-12T16:17:33Z")

</div>

I will try this - thanks a lot!

---

<div class="post-metadata">

**Author:** ![odorakel](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/odorakel/32/101000_2.png) [@odorakel](https://forum.ionicframework.com/u/odorakel)\
**Post date:** [May 12, 2017, 4:18pm UTC](https://forum.ionicframework.com/t/ionic3-and-custom-components/90065/5 "2017-05-12T16:18:04Z")

</div>

@…also! Thanks a lot as well!

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [May 12, 2017, 8:30pm UTC](https://forum.ionicframework.com/t/ionic3-and-custom-components/90065/6 "2017-05-12T20:30:18Z")

</div>

Beware that your app binary might grow substantially, as you will get separate duplicated copies of your component code for each lazy page that includes it.

---

<div class="post-metadata">

**Author:** ![sonicwong78](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@sonicwong78](https://forum.ionicframework.com/u/sonicwong78)\
**Post date:** [September 12, 2018, 3:20am UTC](https://forum.ionicframework.com/t/ionic3-and-custom-components/90065/7 "2018-09-12T03:20:53Z")

</div>

So, what is the better way to do?  
Thanks!
