Skip to content

Commit 996f509

Browse files
MarkJamesHowardjustinfagnani
authored andcommitted
updated to use this keyword on properties in the render method (#198)
1 parent 991d6f3 commit 996f509

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ and renders declaratively using `lit-html`.
6262
describing dynamic parts with standard JavaScript template expressions:
6363

6464
* static elements: ``` html`<div>Hi</div>` ```
65-
* expression: ``` html`<div>${disabled ? 'Off' : 'On'}</div>` ```
66-
* property: ``` html`<x-foo .bar="${bar}"></x-foo>` ```
67-
* attribute: ``` html`<div class="${color} special"></div>` ```
65+
* expression: ``` html`<div>${this.disabled ? 'Off' : 'On'}</div>` ```
66+
* property: ``` html`<x-foo .bar="${this.bar}"></x-foo>` ```
67+
* attribute: ``` html`<div class="${this.color} special"></div>` ```
6868
* event handler: ``` html`<button @click="${(e) => this._clickHandler(e)}"></button>` ```
6969

7070
## Getting started

0 commit comments

Comments
 (0)