Skip to content

Commit 39c02f1

Browse files
bampakoaatscott
authored andcommitted
docs(router): mark title strategy as injectable (angular#46639)
Add the `@Injectable` decorator in the title strategy example so that it can be injected in the providers of the routing module. PR Close angular#46639
1 parent 8d2e5e6 commit 39c02f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aio/content/examples/router/src/app/app-routing.module.10.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class ResolvedChildATitle implements Resolve<string> {
4040

4141

4242
// #docregion custom-page-title
43+
@Injectable({providedIn: 'root'})
4344
export class TemplatePageTitleStrategy extends TitleStrategy {
4445
constructor(private readonly title: Title) {
4546
super();

0 commit comments

Comments
 (0)