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

Method ngOnInit

src/material/chips/chip.ts:283–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281 }
282
283 ngOnInit() {
284 // This check needs to happen in `ngOnInit` so the overridden value of
285 // `basicChipAttrName` coming from base classes can be picked up.
286 this._isBasicChip =
287 this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName) ||
288 this._tagName.toLowerCase() === this.basicChipAttrName;
289 }
290
291 ngAfterViewInit() {
292 this._textElement = this._elementRef.nativeElement.querySelector('.mat-mdc-chip-action-label')!;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected