File tree Expand file tree Collapse file tree 2 files changed +24
-22
lines changed
Expand file tree Collapse file tree 2 files changed +24
-22
lines changed Original file line number Diff line number Diff line change 3939 *
4040 * For example:
4141 *
42- * ```
42+ * ```html
4343 * <!-- import apply shim--only required if using mixins -->
44- * <link rel="import href="bower_components/shadycss/apply-shim.html">
44+ * <link rel="import" href="bower_components/shadycss/apply-shim.html">
4545 * <!-- import custom-style element -->
4646 * <link rel="import" href="bower_components/polymer/lib/elements/custom-style.html">
47- * ...
47+ *
4848 * <custom-style>
4949 * <style>
5050 * html {
Original file line number Diff line number Diff line change 5252 *
5353 * </template>
5454 *
55- * <script>
56- * class EmployeeList extends Polymer.Element {
57- * static get is() { return 'employee-list'; }
58- * static get properties() {
59- * return {
60- * employees: {
61- * value() {
62- * return [
63- * {first: 'Bob', last: 'Smith'},
64- * {first: 'Sally', last: 'Johnson'},
65- * ...
66- * ];
67- * }
68- * }
69- * };
70- * }
71- * }
72- * < /script>
73- *
7455 * </dom-module>
7556 * ```
7657 *
58+ * With the following custom element definition:
59+ *
60+ * ```js
61+ * class EmployeeList extends Polymer.Element {
62+ * static get is() { return 'employee-list'; }
63+ * static get properties() {
64+ * return {
65+ * employees: {
66+ * value() {
67+ * return [
68+ * {first: 'Bob', last: 'Smith'},
69+ * {first: 'Sally', last: 'Johnson'},
70+ * ...
71+ * ];
72+ * }
73+ * }
74+ * };
75+ * }
76+ * }
77+ * ```
78+ *
7779 * Notifications for changes to items sub-properties will be forwarded to template
7880 * instances, which will update via the normal structured data notification system.
7981 *
You can’t perform that action at this time.
0 commit comments