angular-university/angular-ssr-course

router-outlet not rendering the html

Opened this issue · 0 comments

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 { }