I have a page that call two component through selector:
<app-category-list>
<article-view></article-view>
In order to gathering datas for article-view I use a resolve attached to the route.module in this way:
{path: 'article-view/:id', component: ArticleViewComponent , resolve: { article: ArticleDataResolver }, data: {title: 'View Article'}},
this resolve call a service with a promise inside that does a API request.
I retrive the data for my category using an APP_Initializer that return a promise in order to have this data when the application is initialized.
Everything is working and the component category received its data.
PROBLEM
The component category wait to render the category page until the revolse end its promise and return its data.
Is that a problem cos the two component are called in the same page as childs?