A
A
Alex2016-06-22 14:51:45
Angular
Alex, 2016-06-22 14:51:45

Angular 2 router for component?

I have an app level router.
/main /item
What I want: There are a number of directories (list trees ...) that should open in a modal window.
I want the modal window component to have its own router
/main/modal/filter1
/main/modal/filter2 inside
and so that it does not replace main, and view changes only in the modal window.
you can do something like

<first-filter-content ngIf="currentFilter=='first'">
<second-filter-content ngIf="currentFilter=='second'">
...

But it's kind of crooked

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