()
| 261 | } |
| 262 | |
| 263 | ngDoCheck() { |
| 264 | if (this._differ && this._needsUpdate) { |
| 265 | // TODO(mmalerba): We should differentiate needs update due to scrolling and a new portion of |
| 266 | // this list being rendered (can use simpler algorithm) vs needs update due to data actually |
| 267 | // changing (need to do this diff). |
| 268 | const changes = this._differ.diff(this._renderedItems); |
| 269 | if (!changes) { |
| 270 | this._updateContext(); |
| 271 | } else { |
| 272 | this._applyChanges(changes); |
| 273 | } |
| 274 | this._needsUpdate = false; |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | ngOnDestroy() { |
| 279 | this._viewport.detach(); |
nothing calls this directly
no test coverage detected