Ошибка кажется простая, но не могу понять в чем проблема.
import { Routes } from '@angular/router';
import { RegisterComponent } from './register/register.component';
export const REGISTER_ROUTES: Routes = [
{
path: 'register',
component: RegisterComponent
}
];
//
import { Routes } from '@angular/router';
import { LayoutComponent } from './layout/layout.component';
import { AuthGuard } from '../auth/auth.guard';
import { REGISTER_ROUTES } from './register/register.routes';
export const PARTNER_ROUTES: Routes = [
{
path: '',
component: LayoutComponent,
canActivate: [AuthGuard],
data: {
authority: 'ROLE_PARTNER'
},
children: [
...REGISTER_ROUTES
]
}
];
Intellij IDEA ругается на children: [...REGISTER_ROUTES]