question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

  • Link class with the public methods:
    • addLink
    • addLinks
    • getLinks
    • getLinks
    • updateLink
    • removeLink
    • removeLinkElement
  • LinkDefinition type / interface

Describe alternatives you’ve considered

Have you considered any alternative solutions or workarounds?

not yet.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
pkozlowski-opensourcecommented, May 11, 2022

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.

0reactions
angular-automatic-lock-bot[bot]commented, Jul 8, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found