Polymer/old-docs-site

Small error in Polymer.htmlLiteral example

Open

#2.467 geöffnet am 6. Feb. 2018

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)HTML (2.482 Forks)batch import
good first issue

Repository-Metriken

Stars
 (1.013 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide