Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MatCardContent selector #17487

Closed
william-lohan opened this issue Oct 23, 2019 · 1 comment · Fixed by hrueger/AGLight#112
Closed

MatCardContent selector #17487

william-lohan opened this issue Oct 23, 2019 · 1 comment · Fixed by hrueger/AGLight#112
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix

Comments

@william-lohan
Copy link
Contributor

Feature Description

Give MatCardContent a selector like MatDialogContent:

selector: `[mat-dialog-content], mat-dialog-content, [matDialogContent]`,

so like:

  selector: '[mat-card-content], mat-card-content, [matCardContent]',

Use Case

So that when the content of the card's content is just a root element

<mat-card>
  <mat-card-title>My Tite</mat-card-title>
  <mat-card-content>
    <some-root-element></some-root-element>
  </mat-card-content>
</mat-card>

vs

<mat-card>
  <mat-card-title>My Tite</mat-card-title>
  <some-root-element matCardContent></some-root-element>
</mat-card>

there isn't un-necessary nesting

@william-lohan william-lohan added the feature This issue represents a new feature or feature request rather than a bug or bug fix label Oct 23, 2019
william-lohan added a commit to william-lohan/material2 that referenced this issue Oct 23, 2019
william-lohan added a commit to william-lohan/material2 that referenced this issue Oct 24, 2019
mmalerba pushed a commit that referenced this issue Oct 25, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix
Projects
None yet
2 participants