I have following router configuration in my module:
const publicRoutes: Routes = [
{
path: 'public',
component: PublicComponent,
children: [
{path: 'sign', component: SignComponent},
{path: '', redirectTo: '/public/sign', pathMatch: 'full'},
{path: '**', redirectTo: 'sign'},
]
},
];
But when I navigate to only /public I am not redirected, but I get ERROR Error: ASSERTION ERROR: Type passed in is not ComponentType, it does not have 'ɵcmp' property.
Can you bring a bit of light to my life please? I am horribly lost.