Dynamic document Title
-
It there a preferred way of setting the document title per route change?
Something like accessing the title config on thebeforeEach
hook? -
Using Vue Router hooks would be best. But there isn’t actually a “recommended” way because every project has its own architecture. Just do whatever fits best for you. For most cases that would indeed be
beforeEach
hook.