MCPcopy Index your code
hub / github.com/angular/components / constructor

Method constructor

src/aria/toolbar/toolbar.ts:107–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 4

reportViolationsFunction · 0.90
startObservingMethod · 0.80
setDefaultStateEffectMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected