You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+35-1Lines changed: 35 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,41 @@ This update to Polymer includes some new [global settings](https://polymer-libra
117
117
118
118
**What does it do?** This setting causes `<dom-if>` and `<dom-repeat>` not to dispatch `dom-change` events when their rendered content is updated. If you're using lots of `<dom-if>` and `<dom-repeat>` but not listening for these events, this setting lets you disable them and their associated propagation work.
119
119
120
-
You can override the global setting on an individual `<dom-if>` or `<dom-repeat>` by setting its `notify-dom-change` boolean attribute.
120
+
You can override the global setting for an individual `<dom-if>` or `<dom-repeat>` by setting its `notify-dom-change` boolean attribute:
121
+
122
+
```js
123
+
import {PolymerElement, html} from '@polymer/polymer/polymer-element.js';
124
+
125
+
class SomeElement extends PolymerElement {
126
+
static get properties() {
127
+
return {
128
+
visible: {type: Boolean, value: false},
129
+
};
130
+
}
131
+
132
+
static get template() {
133
+
return html`
134
+
<button on-click="_toggle">Toggle</button>
135
+
<!-- Set notify-dom-change to enable dom-change events for this particular <dom-if>. -->
0 commit comments