Skip to content

Conversation

@danncortes
Copy link

Checklist for challenge submission

  • Start your PR message with Answer:${challenge_number}

Warning:

Alternatively, you can still submit your PR to join the list of answered challenges or to be reviewed by a community member. 🔥

@github-actions github-actions bot added 1 exercice projection answer answer labels Dec 17, 2025
@tomalaforge tomalaforge added the sponsor sponsor the project label Dec 18, 2025
})
export class CardListItemTemplateDirective {
constructor(public template: TemplateRef<any>) {}
}
Copy link
Owner

Choose a reason for hiding this comment

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

nice, you could even type your directive

exportAs: 'appCardListItem',
})
export class CardListItemTemplateDirective {
constructor(public template: TemplateRef<any>) {}
Copy link
Owner

Choose a reason for hiding this comment

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

nitpick: use inject function


@Directive({
selector: 'ng-template[appCardListItem]',
standalone: true,
Copy link
Owner

Choose a reason for hiding this comment

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

default flag

@tomalaforge
Copy link
Owner

That's perfect. great work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 exercice projection answer answer sponsor sponsor the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants