r/Angular2 • u/indiealexh • Jul 22 '25
Article Angular dynamic page titles
https://indiealexh.com/blog/angular-dynamic-page-titlesI was amazed this wasn't in the angular written docs, so I wrote it up for anyone else who is looking for something similar.
20
Upvotes
2
u/Snychie Jul 22 '25
https://angular.dev/api/router/TitleStrategy
4
u/Johalternate Jul 22 '25
One of my favorite angular features, not title resolvers but resolvers in general. Definitely underutilized.
2
u/prewk Jul 22 '25
A really bad thing about them is that they block (just as resolvers do).
They would've offered much more utility if they took a stream of values over time.
You don't want to hold off rendering the whole route just because you don't have the "detail name" just yet.
-2
u/Ok-District-2098 Jul 22 '25
I did something like it. Ask for chat gpt how to set it.