feat(platform-browser): add Link service for managing link tags#68650
Open
BHUVANSH855 wants to merge 1 commit into
Open
feat(platform-browser): add Link service for managing link tags#68650BHUVANSH855 wants to merge 1 commit into
BHUVANSH855 wants to merge 1 commit into
Conversation
Adds a new Link service to @angular/platform-browser for managing HTML link tags. The API is modeled after the existing Meta service and supports adding, retrieving, updating, and removing link tags. Includes runtime tests, duplicate prevention logic, and DI integration tests for BrowserModule support. Closes angular#68220
8f61002 to
56137b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
Linkservice to@angular/platform-browserfor managing HTML<link>tags.The API is modeled after the existing
Metaservice and supports:Includes:
BrowserModulesupportCloses #68220
Related:
Linkservice #34605PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Angular currently provides a
Metaservice for managing HTML<meta>tags, but there is no equivalent API for managing HTML<link>tags such as canonical links, preload hints, manifests, stylesheets, and related resources.Issue Number: #68220
What is the new behavior?
This PR introduces a new
Linkservice in@angular/platform-browserfor managing HTML<link>tags.The service supports:
The implementation includes:
BrowserModuleDoes this PR introduce a breaking change?
Other information
The API shape intentionally mirrors the existing
Metaservice to provide a familiar and consistent developer experience for managing document-level metadata elements.