Skip to content

Commit

Permalink
Fix several issues in the documentation of dom-* elements
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Feb 23, 2018
1 parent 821f335 commit 8e1b3f4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
6 changes: 3 additions & 3 deletions lib/elements/custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
*
* 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 lib/elements/dom-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,30 @@
*
* </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 8e1b3f4

Please sign in to comment.