Как маршрутизировать ссылку * ng для метода case - PullRequest
0 голосов
/ 20 апреля 2019

Я столкнулся с ошибкой компиляции на роутере * метод ngFor

HTML

<mat-sidenav #snav [mode]="'push'">
   <mat-nav-list>
      <a *ngFor="let mnu of menus" mat-list-item [routerLink]="['/mnu']">{{mnu}}<\a>
   <\mat-nav-list>
<\mat-sidenav>

Main.JS

Menu:  string[] = ['Login', 'Data Table', 'Google Map', 'Input Form', 'Web View', 'Image Viewers', 'Video Viewers', 'Video Viewers',
   'PDF Viewers', 'Chat Vox' ];
Error
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'mnu'
Error: Cannot match any routes. URL Segment: 'mnu'
    at ApplyRedirects.push../node_modules/@angular/router/fesm5/router.js.ApplyRedirects.noMatchError (router.js:2469)`enter code here`
    at CatchSubscriber.selector (router.js:2450)
...