Skip to content
New issue

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

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

Already on GitHub? # to your account

Answer:58 #1263

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tsironis13
Copy link
Contributor

The solution is based on the fact that we cannot include 2 ng-content tags with the same selector. This is an Angular by design constraint. Ng-template tag can be used instead.

@github-actions github-actions bot added 58 answer answer contributor highly contributing to the project to be reviewed PR requests a review labels Mar 27, 2025
@Directive({
selector: '[appCardMessage]',
})
export class CardMessageDirective {}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, using a directive to avoid magic string is the cherry on top. Nice solution

@tomalaforge tomalaforge removed the to be reviewed PR requests a review label Mar 28, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
58 answer answer contributor highly contributing to the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants