My directory structure is displayed in the image below:
Whenever I use the <app-news-card>
selector in my app.component.html, it returns an error stating that <app-news-card>
is not present in the current module.
What is the best way to resolve this issue effectively?
Currently, here's what I am doing:
1.) Exporting the news-card.component from the news.module
2.) Importing NewsModule into the current.module and re-exporting it
3.) Then importing CurrentModule into the app.module