old-docs-site icon indicating copy to clipboard operation
old-docs-site copied to clipboard

Small error in Polymer.htmlLiteral example

Open jukbot opened this issue 7 years ago • 1 comments

I'm found some error and misspelling for example in Polymer.htmlLiteral section.

static get template() {
  return Polymer.html`
    <style>
      :host { display: block; }
      ${styleTemplate}
    </style>
    <div class="shadowed">${staticValue}</div>
    ${super.template}
  `;
}
static get styleTemplate() { return Polymer.htmlLiteral`.shadowed { background: gray; }`; }

${styleTemplate} should set the scope to ${this.styleTemplate} and gray should correct to grey

Found error in this (Polymer.htmlLiteral example): https://www.polymer-project.org/2.0/docs/api/

Ref: https://www.polymer-project.org/2.0/docs/devguide/dom-template#inherited-templates

jukbot avatar Feb 06 '18 22:02 jukbot

PS. I think this repo has too many unused branches.

jukbot avatar Feb 11 '18 12:02 jukbot