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.

Add a decorator for setting document title

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
angular-robot[bot]commented, Jun 24, 2021

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.

0reactions
angular-automatic-lock-bot[bot]commented, Aug 17, 2021

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

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 >

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