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:
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.