Add a decorator for setting document title
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior We need a Title Service as described in the Set Document Title Cookbook.
Suggested behavior
Using a decorator to bind the title, along the lines of @HostBinding(title:text)
or @HostBinding(title:innerHTML)
, or maybe even entirely new decorator such as @TitleBinding
.
What is the motivation / use case for changing the behavior?
It’s a bit weird that binding to window
is so easy and setting the title so hard.
We can already access window
with a decorator so why not access title
the same way?
- Angular version: 2.0.0
- Browser: all
- Language: TypeScript
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Documentation - Decorators - TypeScript
A Decorator is a special kind of declaration that can be attached to a class declaration, method, accessor, property, or parameter. Decorators use...
Read more >react-document-title-decorator - npm package - Snyk
react-document-title-decorator · A clean way to handle tab titles in your React application For more information about how to use this package ...
Read more >Adding Portlet Decorators to a Theme - Liferay Help Center
Portlet Decorators are associated with a particular theme. If your theme does not define any portlet decorators, none are available.
Read more >Decorators - Storybook - JS.ORG
Use a decorator to add spacing for all stories of the component. ... YourComponent'; export default { /* The title prop is optional....
Read more >6. Decorators and Decoration | Advanced - Python Courses eu
Introduction to decorators. ... Python is any callable Python object that is used to modify a function or a class. ... Enjoying this...
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
Thank you for submitting your feature request! Looks like during the polling process it didn’t collect a sufficient number of votes to move to the next stage.
We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular’s scope, we’d encourage you to collaborate with the community on publishing it as an open source package.
You can find more details about the feature request process in our documentation.
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.