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

Method constructor

src/material/card/card.ts:52–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 @Input() appearance: MatCardAppearance;
51
52 constructor() {
53 const config = inject<MatCardConfig>(MAT_CARD_CONFIG, {optional: true});
54 this.appearance = config?.appearance || 'raised';
55 }
56}
57
58// TODO(jelbourn): add `MatActionCard`, which is a card that acts like a button (and has a ripple).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected