You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implementing a Meta class for getting and changing HTML meta tags #11115
[ ] 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
I'd like to implement a shortcut for getting and setting HTML meta values (<meta name="description">, `...).
I think that a long with changing the title it's often useful to change meta values as well.
Current behavior
It's currently possible to use the getDOM().query('meta[name=description'])method to grab the element and then use thegetDOM().setAttribute(el, 'content', 'something')` method to change the content. Therefore this implementation would serve only as a shortcut.
Expected/desired behavior
The Meta class would be very similar to theTitle Class
It would have a getMeta() and a setMeta() method. Something like this:
Activity
angular-automatic-lock-bot commentedon Sep 10, 2019
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.