K
K
Konstantin2020-06-16 23:06:48
Angular
Konstantin, 2020-06-16 23:06:48

Where is the best place to place the pagination component?

There is a component

<app-orders-distribution-list></app-orders-distribution-list>
which is a container component, loading data from the server inside and displaying them.

There is also a component <app-pagination>that manages the list <app-orders-distribution-list>.

But it also <app-pagination>depends on the component <app-dropdown-showby>, getting the value showBy.

How to organize the component structure?
Should the component <app-pagination>be inside <app-orders-distribution-list>?

And where should it be:<app-dropdown-showby>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question