На данный момент все работает. Но проблема в том что ссылка отображается коряво с название роутер отлета http://prntscr.com/nvm0dd
Я хочу что б было как у людей profile/mymessage
Вот код файла роут
const routes: Routes = [
{
path: '',
component: LoginComponent
},
{
path: 'login',
component: LoginComponent
},
{
path: 'profile',
component: ProfileComponent,
children: [
{
path: 'mymessage',
component: MymessageComponent,
outlet: 'mypage'
},
]
},
];
есть первый rout outlet и в уже дочерний с именем. Вот код
<a [routerLink]="[{ outlets: {mypage: ['mymessage'] } }]">
<mat-sidenav-content>
<router-outlet name="mypage"></router-outlet>
</mat-sidenav-content>
Цель одна. Добиться что б ссылка была нормальной profile/mymessage