Skip to content

Commit fbab8e2

Browse files
committed
fix: make apptitle optional inject
1 parent ce99afa commit fbab8e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/common/src/navigation/navigation.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Location, PlatformLocation } from '@angular/common';
2-
import { Inject, Injectable, Type } from '@angular/core';
2+
import { Inject, Injectable, Optional, Type } from '@angular/core';
33
import { Title } from '@angular/platform-browser';
44
import {
55
ActivatedRoute,
@@ -37,7 +37,7 @@ export class NavigationService {
3737
private readonly location: Location,
3838
private readonly platformLocation: PlatformLocation,
3939
private readonly titleService: Title,
40-
@Inject(APP_TITLE) private readonly appTitle: string
40+
@Optional() @Inject(APP_TITLE) private readonly appTitle: string
4141
) {
4242
this.event$(RoutesRecognized)
4343
.pipe(skip(1), take(1))

0 commit comments

Comments
 (0)