You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Web-Dev-For-Beginners/translations/en/7-bank-project/1-template-route/assignment.md

2.5 KiB

Improve the routing

Instructions

The route declarations currently only specify the template ID to use. However, when displaying a new page, additional functionality is sometimes required. Let's enhance our routing implementation with two new features:

  • Assign titles to each template and update the browser's window title with the new title whenever the template changes.
  • Include an option to execute some code after the template changes. For example, we want to log 'Dashboard is shown' in the developer console every time the dashboard page is displayed.

Rubric

Criteria Outstanding Satisfactory Needs Improvement
Both features are implemented and functional. Titles and code execution also work for any new route added to the routes declaration. Both features work, but the behavior is hardcoded and cannot be configured through the routes declaration. Adding a third route with title and code execution either doesn't work or works partially. One of the features is missing or not functioning correctly.

Disclaimer:
This document has been translated using the AI translation service Co-op Translator. While we aim for accuracy, please note that automated translations may include errors or inaccuracies. The original document in its native language should be regarded as the definitive source. For critical information, professional human translation is advised. We are not responsible for any misunderstandings or misinterpretations resulting from the use of this translation.