Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Feb 23, 2018
1 parent 8e1b3f4 commit bb61a20
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
6 changes: 3 additions & 3 deletions types/lib/elements/custom-style.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ declare namespace Polymer {
*
* For example:
*
* ```
* ```html
* <!-- import apply shim--only required if using mixins -->
* <link rel="import href="bower_components/shadycss/apply-shim.html">
* <link rel="import" href="bower_components/shadycss/apply-shim.html">
* <!-- import custom-style element -->
* <link rel="import" href="bower_components/polymer/lib/elements/custom-style.html">
* ...
*
* <custom-style>
* <style>
* html {
Expand Down
40 changes: 21 additions & 19 deletions types/lib/elements/dom-repeat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,30 @@ declare namespace Polymer {
*
* </template>
*
* <script>
* 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'},
* ...
* ];
* }
* }
* };
* }
* }
* < /script>
*
* </dom-module>
* ```
*
* With the following custom element definition:
*
* ```js
* 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'},
* ...
* ];
* }
* }
* };
* }
* }
* ```
*
* Notifications for changes to items sub-properties will be forwarded to template
* instances, which will update via the normal structured data notification system.
*
Expand Down

0 comments on commit bb61a20

Please sign in to comment.