Skip to content

Commit 932e51d

Browse files
committed
fix: SSR (again)
1 parent 366d79e commit 932e51d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/app.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Angular
22
import { Component, OnInit, Inject, PLATFORM_ID, OnDestroy, ChangeDetectorRef, ErrorHandler } from '@angular/core';
33
import { RouterOutlet, Router, NavigationEnd } from '@angular/router';
4-
import { CommonModule, isPlatformBrowser, isPlatformServer } from '@angular/common';
4+
import { CommonModule, isPlatformBrowser } from '@angular/common';
55

66
// Dependencies
77
import { MessageService, ConfirmationService } from 'primeng/api';
@@ -53,7 +53,7 @@ import { MetaTagsService } from '~/app/services/meta-tags.service';
5353
<!-- Create router outlet -->
5454
<breadcrumbs *ngIf="pagePath" [pagePath]="pagePath" />
5555
<!-- Router outlet for main content -->
56-
<!-- <router-outlet /> -->
56+
<router-outlet *ngIf="!loading" />
5757
<!-- Global components -->
5858
<p-scrollTop />
5959
<p-toast />
@@ -76,7 +76,7 @@ import { MetaTagsService } from '~/app/services/meta-tags.service';
7676
})
7777
export class AppComponent implements OnInit, OnDestroy {
7878
private subscription: Subscription | undefined;
79-
private publicRoutes = new Set(['/home', '/about', '/login']);
79+
private publicRoutes = new Set(['/home', '/about', '/login', '/advanced']);
8080
private fullWidthRoutes: string[] = ['/settings', '/stats'];
8181

8282
public loading: boolean = true;

0 commit comments

Comments
 (0)