How to load routing module in angular 17 for RouterModule.forChild

Discussão em 'Angular' iniciado por shekhar, Novembro 11, 2024.

  1. shekhar

    shekhar Guest

    I need to covert my Angular 16 project into Angular 17 And I used the routing module for lazy loading in Angular 16 my Angular 16 code was like this

    @NgModule({
    declarations: [DashboardComponent],
    imports: [
    CommonModule,
    RouterModule.forChild([
    {
    path: '',
    component: DashboardComponent,
    },
    ]),
    ],
    })


    I just need this into Angular 17

    Continue reading...

Compartilhe esta Página