K
K
Konstantin2020-03-06 19:19:37
Angular
Konstantin, 2020-03-06 19:19:37

How to decide on the structure of components?

How to make the right decision in choosing the structure of the components, namely their nesting, parent and child inside.

What principles should be followed and when should dynamic components be applied?

How to be sure that set A should be in component B if these are different entities.

For example, a map opens on the product page who bought this product, should I place the list of buyers as a component in the product component in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
babtsoualiaksandr, 2020-03-11
@Junart1

For myself, I do this:
- what is used when navigating through the route is the pages component
- page elements: these are those that can be reused on this or other pages, they are all in the component folder of the module
5e68c029d307b842229949.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question