Skip to content

router-outlet not rendering the html #28

Open
@SandeepBanerjee

Description

@SandeepBanerjee

Hi I am gettign

after integration of angular ssr, I am followign all the cmand as per tuts

my router page is this

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LogoutComponent } from './components/logout/logout.component';

const routes: Routes = [
{
path: '',
loadChildren: () => import('./module/home/home.module').then(m => m.HomeModule)
},
{
path: 'tour-packages',
loadChildren: () => import('./module/tour-packages/tour-packages.module').then(m => m.TourPackagesModule)
},
{
path: 'sights',
loadChildren: () => import('./module/sights/sights.module').then(m => m.SightsModule)
},
{
path: 'about-us',
loadChildren: () => import('./module/about-us/about-us.module').then(m => m.AboutUsModule)
},
{
path: 'login',
loadChildren: () => import('./module/login/login.module').then(m => m.LoginModule)
},
{
path: 'register',
loadChildren: () => import('./module/register/register.module').then(m => m.RegisterModule)
},
{
path: 'contact-us',
loadChildren: () => import('./module/contact/contact.module').then(m => m.ContactModule)
},
{
path: 'my-account', loadChildren: () => import('./module/my-account/my-account.module').then(m => m.MyAccountModule) },
{
path: 'logout',
component: LogoutComponent
},
];

@NgModule({
imports: [RouterModule.forRoot(routes, {
initialNavigation: 'enabledBlocking'
})],
exports: [RouterModule]
})
export class AppRoutingModule { }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions