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

Method constructor

src/aria/combobox/combobox.ts:125–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 });
124
125 constructor() {
126 super();
127
128 afterRenderEffect({write: () => this._pattern.keyboardEventRelayEffect()});
129 afterRenderEffect(() => {
130 this.contentVisible.set(this._pattern.isExpanded());
131 });
132
133 if (this._pattern.isEditable()) {
134 afterRenderEffect(() => {
135 this._renderer.setProperty(this.element, 'value', this.value());
136 });
137 afterRenderEffect(() => {
138 this._pattern.highlightEffect();
139 });
140 }
141 }
142
143 ngOnInit() {
144 if (this.alwaysExpanded()) {

Callers

nothing calls this directly

Calls 6

setMethod · 0.80
isEditableMethod · 0.80
highlightEffectMethod · 0.80
isExpandedMethod · 0.65
valueMethod · 0.45

Tested by

no test coverage detected