File tree 1 file changed +17
-11
lines changed
1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change 51
51
* </template>
52
52
*
53
53
* <script>
54
- * Polymer({
55
- * is: 'employee-list',
56
- * ready: function() {
57
- * this.employees = [
58
- * {first: 'Bob', last: 'Smith'},
59
- * {first: 'Sally', last: 'Johnson'},
60
- * ...
61
- * ];
54
+ * class EmployeeList extends Polymer.Element {
55
+ * static get is() { return 'employee-list'; }
56
+ * static get properties() {
57
+ * return {
58
+ * employees: {
59
+ * value() {
60
+ * return [
61
+ * {first: 'Bob', last: 'Smith'},
62
+ * {first: 'Sally', last: 'Johnson'},
63
+ * ...
64
+ * ];
65
+ * }
66
+ * }
67
+ * };
62
68
* }
63
- * });
69
+ * }
64
70
* < /script>
65
71
*
66
72
* </dom-module>
102
108
* For example, for an `dom-repeat` with a filter of the following:
103
109
*
104
110
* ```js
105
- * isEngineer: function (item) {
106
- * return item.type == 'engineer' || item.manager.type == 'engineer';
111
+ * isEngineer(item) {
112
+ * return item.type == 'engineer' || item.manager.type == 'engineer';
107
113
* }
108
114
* ```
109
115
*
You can’t perform that action at this time.
0 commit comments