I'm interested in a solution to this as well. The context for me is that
I'm attempting to build a component that would be used by a few dozen
different applications to apply a common theme to all of them.
<body>
<our-common-theme>
<div>All the content</div>
</our-common-theme>
</body>
The one big catch is that the <our-common-theme> component must inject some
meta tags the parent DOM's head. We've had a hard time getting that
working with Polymer.
On Thursday, December 3, 2015 at 4:50:18 PM UTC-5, Ammar wrote:
>
> I have a polymer node site that I've been working on and can't figure out
> how to include dynamic meta tags so that my description changes. I don't
> want to use this only for the description but also to set data for
> og:title, og:url,..etc. for facebook.
>
> For example:
>
> <!doctype html>
>
> <html>
> <head>
> <meta name="description" content="description goes here" />
> <meta property="og:title" content="title"/>
> </head>
> <body>
> <group-pages id="grouppages" is="dom-bind"></group-pages>
> </body>
> </html>
>
> grouppages sets the data and uses a services to populate the page based
> off the url but what I can't find out is how to change the meta tags. I
> can do it with jquery but that won't work for SEO or when you share a page
> on facebook?
>
> Anyone have any ideas? Is there a polymer component for this?
>
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/4e1e5c66-3348-4a6a-bba0-e931e3bd125f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.