Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a provide a way to instantiate the template directly into the element #157

Closed
jonrimmer opened this issue May 22, 2013 · 4 comments
Assignees

Comments

@jonrimmer
Copy link

Polymer automatically instantiates the element template within a shadow root. There may be cases where developers want the contents of the template to be in the regular DOM tree, so they are accessibly to external scripts. A way to control whether the cloned template is placed within a shadow root or appended as a child of the element would be useful.

@gunn
Copy link

gunn commented Jun 12, 2013

+1. While we're at it, a way to enable external styles too, I'm currently doing:

Polymer.register(this, {
  ready: function () {
    this.webkitShadowRoot.applyAuthorStyles = true;
  }
});

@sjmiles
Copy link
Contributor

sjmiles commented Jun 12, 2013

@gunn, fwiw, you can do this:

Polymer.register(this, {
  applyAuthorStyles: true
});

@gunn
Copy link

gunn commented Jun 12, 2013

Thanks @sjmiles!

@dfreedm
Copy link
Member

dfreedm commented Jul 24, 2013

This seems like a special case of #156.

@ghost ghost assigned sjmiles Oct 2, 2013
@sorvell sorvell closed this as completed Aug 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants