()
| 105 | }); |
| 106 | |
| 107 | constructor() { |
| 108 | afterRenderEffect({write: () => this._pattern.setDefaultStateEffect()}); |
| 109 | |
| 110 | // Check for any violations after the DOM has been updated. |
| 111 | if (typeof ngDevMode === 'undefined' || ngDevMode) { |
| 112 | afterRenderEffect({ |
| 113 | read: () => { |
| 114 | reportViolations(this._pattern.validate(), this.element); |
| 115 | }, |
| 116 | }); |
| 117 | } |
| 118 | |
| 119 | afterNextRender(() => { |
| 120 | this._collection.startObserving(this.element); |
| 121 | }); |
| 122 | } |
| 123 | |
| 124 | ngOnDestroy() { |
| 125 | this._collection.stopObserving(); |
nothing calls this directly
no test coverage detected