Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ into the element. This is the only method that must be implemented by subclasses
```html
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script type="module">
import {LitElement, html, property} from '@polymer/lit-element';
import {LitElement, html} from '@polymer/lit-element';

class MyElement extends LitElement {

Expand Down Expand Up @@ -223,7 +223,7 @@ Note, this example uses decorators to create properties. Decorators are a propos
standard currently available in [TypeScript](https://www.typescriptlang.org/) or [Babel](https://babeljs.io/docs/en/babel-plugin-proposal-decorators).

```ts
import {LitElement, html, property} from '@polymer/lit-element';
import {LitElement, html} from '@polymer/lit-element';

class MyElement extends LitElement {

Expand Down Expand Up @@ -279,4 +279,4 @@ Chrome, Safari, Opera, Firefox, Edge. In addition, Internet Explorer 11 is also
platform properties like (`id` or `name`) may not have default values set in the element constructor.
On these browsers native properties appear on instances and therefore their default value
will overwrite any element default (e.g. if the element sets this.id = 'id' in the constructor,
the 'id' will become '' since this is the native platform default).
the 'id' will become '' since this is the native platform default).