MCPcopy Create free account
hub / github.com/angular/components / constructor

Method constructor

src/aria/toolbar/toolbar-widget-group.ts:64–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 });
63
64 constructor() {
65 // Check for any violations after the DOM has been updated.
66 if (typeof ngDevMode === 'undefined' || ngDevMode) {
67 afterRenderEffect({
68 read: () => {
69 const violations: string[] = [];
70 if (!this._toolbar) {
71 violations.push('ngToolbarWidgetGroup must be placed inside an ngToolbar container.');
72 }
73 reportViolations(violations, this.element);
74 },
75 });
76 }
77 }
78}

Callers

nothing calls this directly

Calls 2

reportViolationsFunction · 0.90
pushMethod · 0.65

Tested by

no test coverage detected