Skip to content

Answer:4 [Type-context-outlet] #1346

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

allan1989
Copy link

No description provided.

@github-actions github-actions bot added 4 exercice context outlet type answer answer sponsor sponsor the project to be reviewed PR requests a review labels May 27, 2025

@ContentChild('#personRef', { read: TemplateRef })
@ContentChild(PersonDirective, { read: TemplateRef })
Copy link
Owner

Choose a reason for hiding this comment

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

you can now type the TemplateRef to TemplateRef

this._viewRef.context = this.ngTemplateOutletContext;
}
}
}
Copy link
Owner

Choose a reason for hiding this comment

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

I don't understand this directive, I feel like it's coming from AI.
Can you explain its goal?

@tomalaforge tomalaforge removed the to be reviewed PR requests a review label Jun 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 exercice context outlet type answer answer sponsor sponsor the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants