In the application I am developing, there is a list of employees that when clicked on, navigates to that employee's details. I want the browser title to display information specific to each employee, such as "Employee Name: Employee Number". The same functionality should apply to the list of departments as well; when navigating to the department component, the browser title should show "Department Name: Department Number".
I am looking for suggestions on how to achieve this in a generic way rather than setting the title individually for each component.