. If 'router-outlet' is an Angular component, then verify that it is part of this module. code example
Example: If 'router-outlet' is an Angular component, then verify that it is part of this module.
@NgModule({
imports: [
BrowserModule,
RouterModule