P
P
Pavel Talaiko2020-11-01 13:48:14
Angular
Pavel Talaiko, 2020-11-01 13:48:14

How to remove the panel (creations, changes) of the entity when changing the route?

Good day friend.

So the situation is as follows:

1) I have a page with a list of entities localhost:4200/dictionaries dict-types ?page=0&size=20

5f9e8ff082771674833039.png

2) When I select an entity, I want the sidebar to open and change the URL localhost:4200/dictionaries dict-types/create ? page=0&size=20:

5f9e90607d75a890290550.png

3) So that when a person navigates (through the search bar) localhost:4200/dictionaries dict-types/create ?page=0&size=20, they immediately have a sidebar.

Means questions:

route.navigate (done) everything opens when you click on the entity. How to make a discovery without crutches when going through the search bar?

My crutch solution:

There is a solution at the start of the page component (list of entities) to look at the route and determine if there is a prefix (create, route) in it, but it seems to me that this is not Christian.

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