diff --git a/lib/elements/array-selector.html b/lib/elements/array-selector.html index 79408d2e08..436983a016 100644 --- a/lib/elements/array-selector.html +++ b/lib/elements/array-selector.html @@ -373,19 +373,23 @@ * * * Employee list: - * + * + * * First name: {{item.first}} - * Last name: {{item.last}} - * Select - * + * Last name: {{item.last}} + * Select + * + * * * * * Selected employees: - * + * + * * First name: {{item.first}} * Last name: {{item.last}} - * + * + * * * * @@ -393,20 +397,26 @@ * ``` * * ```js - * Polymer({ - * is: 'employee-list', - * ready() { - * this.employees = [ - * {first: 'Bob', last: 'Smith'}, - * {first: 'Sally', last: 'Johnson'}, - * ... - * ]; - * }, - * toggleSelection(e) { - * let item = this.$.employeeList.itemForElement(e.target); - * this.$.selector.select(item); - * } - * }); + *class EmployeeList extends Polymer.Element { + * static get is() { return 'employee-list'; } + * static get properties() { + * return { + * employees: { + * value() { + * return [ + * {first: 'Bob', last: 'Smith'}, + * {first: 'Sally', last: 'Johnson'}, + * ... + * ]; + * } + * } + * }; + * } + * toggleSelection(e) { + * let item = this.$.employeeList.itemForElement(e.target); + * this.$.selector.select(item); + * } + *} * ``` * * @polymer diff --git a/lib/elements/dom-repeat.html b/lib/elements/dom-repeat.html index 2d59e7e2b5..a68e68796f 100644 --- a/lib/elements/dom-repeat.html +++ b/lib/elements/dom-repeat.html @@ -43,10 +43,12 @@ * * * Employee list: - * + * + * * First name: {{item.first}} * Last name: {{item.last}} - * + * + * * * * @@ -116,8 +118,7 @@ * Then the `observe` property should be configured as follows: * * ```html - * + * * ``` * * @customElement diff --git a/types/lib/elements/dom-repeat.d.ts b/types/lib/elements/dom-repeat.d.ts index 1228126e49..1d085362da 100644 --- a/types/lib/elements/dom-repeat.d.ts +++ b/types/lib/elements/dom-repeat.d.ts @@ -32,10 +32,12 @@ declare namespace Polymer { * * * Employee list: - * + * + * * First name: {{item.first}} * Last name: {{item.last}} - * + * + * * * * @@ -105,8 +107,7 @@ declare namespace Polymer { * Then the `observe` property should be configured as follows: * * ```html - * + * * ``` */ class DomRepeat extends