Answer the question
In order to leave comments, you need to log in
How to get related data in Angular Ngrx?
Good afternoon!
The following situation occurred.
There are two stores
tags: [
{id: 1, name:'Tag', id: 2, name:'Tag 2' }
]
and
pages: [
{id: 1, tagId: 1, title:'Title' }
{id: 2, tagId: 2, title:'Title'}
]
In the component, I get all the pages and loop through them.
But how can I link to each page a tag from store tags by id.
As a rule, we say selectedId = id in the store and subscribe to the selected email. But in my case it doesn't work.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question