Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

[Ionic 4] Can't use component

$
0
0

@felipe-ff wrote:

I’ve created a generic page that I want to use in 2 other pages, but I can’t use it, when I put the code:

<app-listing #listing</app-listing>

in one of the pages, it gives me: Error: Template parse errors: ‘app-listing’ is not a known element: 1. If ‘app-listing’ is an Angular component, then verify that it is part of this module.

I added the page to app.module declarations but no luck.

It only works if I add it to declarations of both pages, but then it gives me an error saying I can’t have the same page in 2 modules…

What am I supposed to do.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>