-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experiment: Page enhancement allowing head elements to be added for a given page and automatically removed when routing away #62
base: main
Are you sure you want to change the base?
Conversation
…when routing away from current page.
7c57d07
to
1611e8a
Compare
|
Moved the logic related to this to the component level, allowing usage at the component or page level. The elements added to the head are removed once the component is removed from the Dom. Before potentially merging this feature, it needs to be adjusted to be fully await able, such that the elements are added to the head before the render method returns. |
Quality Gate passedIssues Measures |
Background
Outside of updating title and meta tags, which are handled via the
SeoService
andPage
properties, modifications to the head need to be handled via custom code. This branch is an experiment if providing aPage
level configuration option for declaring elements that should be rendered in the head for that page, but not retained after routing away from that page.Use case
Implementation
Page
property has been added called, "HeaderElements"Example usage
^ script from above "hello.js" executes,
alert('hello world');