feat(platform-browser) provide `Link` service
See original GitHub issueπ feature request
Relevant Package
This feature request is for @angular/platform-browser
Description
Similar to the provided class Meta within itβs interface MetaDefinition there should be a service to add and modify HTML <link> elements in the <head>.
This is essential to add for example dynamically canonical URLs without touching the DOM directly in the App.
Describe the solution youβd like
I would like to have two things:
-
Linkclass with the public methods:-
addLink -
addLinks -
getLinks -
getLinks -
updateLink -
removeLink -
removeLinkElement
-
-
LinkDefinitiontype / interface
Describe alternatives youβve considered
Have you considered any alternative solutions or workarounds?not yet.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:6 (4 by maintainers)
Top Results From Across the Web
angular/platform-browser
@angular/platform-browserlink ... Supports execution of Angular apps on different supported browsers. The BrowserModule is included by default in any app createdΒ ...
Read more >Firebase Dynamic Links
Custom link domains ... Create your subdomain at no charge in the Firebase console. All Dynamic Links features, including analytics, post-install attributions,Β ...
Read more >App Service β Build & Host Web Apps | Microsoft Azure
Quickly and easily create enterprise-ready web and mobile apps for any platform or device, and deploy them on a scalable and reliable cloud...
Read more >Brave Browser: Secure, Fast & Private Web Browser with ...
The Brave browser is a fast, private and secure web browser for PC, Mac and mobile. Download now to enjoy a faster ad-free...
Read more >Links - Usability & Web Accessibility - Yale University
Occasionally, it may not be possible to make link text alone convey the link's purpose out of context. In those cases, a few...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Weβve considered this feature request and decided against implementing it: https://github.com/angular/angular/pull/34606#issuecomment-729270727
But this service might be actually useful in the scope of the optimized image directive we are working on. To be confirmed.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.