Custom components doesnt work on child pages


#1

I have a component that works if I call it in app.html but cause error on other pages - Uncaught (in promise): Error: Template parse errors: 'coupons-list' is not a known element: 1..


#2

Are you already using Ionic 3 with lazy loading? So perhaps you have to import the custom component into your module file for that page!


#3

Yea, thank you. Forget about that :frowning:


#4

If your custom component is fairly heavy, you may want to know that you now have a separate copy of its code in your app binary for every page that uses it.