ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'list'


#1

Hi How I should navigate in lazy modules loaded app?
I have thsi route in app-routing

[{ path: "", redirectTo: "/home", pathMatch: "full" },
    {
        path: "home",
        loadChildren: "./home/home.module#HomeModule"
    },
    {
        path: "search",
        loadChildren: "./search/search.module#SearchModule"
    }]

And then in search module this routes:

[
    { path: "", component: SearchComponent },
    { path: "list", component: SearchListComponent }
]

If I navigate in SearchComponent like this:

this.routerExtensions.navigate(['/list'], {
            transition: {
                name: 'fade'
            }
        });

in app.comonent I have in RadSideDrawre:
<page-router-outlet tkMainContent class="page page-content"></page-router-outlet>

I get error:
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: ‘list’

How should I navigate between routes in module and how between modules?

I use nativescript 4.1 and angular 6
Thanks for helps, tips


#2

It looks that ‘/search/list’ for this.routerExtensions.navigate helps. I think that I tested before and not work, but now work