Skip to content

Conversation

@tsironis13
Copy link
Contributor

@tsironis13 tsironis13 commented Apr 4, 2025

Second solution for challenge n59.
The idea is to deligate the post http resource logic handling to dedicate directive.
The component calls the needed resource signal properties only when the card content is expanded.
By using such approach, the conditional logic to trigger the http resource is not needed.

@github-actions github-actions bot added 59 answer answer contributor highly contributing to the project to be reviewed PR requests a review labels Apr 4, 2025
[class.max-h-0]="!isExpanded()"
[class.max-h-[1000px]]="isExpanded()">
<ng-content />
@defer (on interaction(expandContentButton)) {
Copy link
Owner

Choose a reason for hiding this comment

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

yes, yes and yes
I was looking for this solution. There were a hint in the title. But I think I will create a second challenge for people to guess this solution.

Great job. 🔥

@tomalaforge tomalaforge removed the to be reviewed PR requests a review label May 2, 2025
@github-actions
Copy link

This pull request is stale because it has been open for 15 days with no activity.

@github-actions github-actions bot added the stale label May 23, 2025
@github-actions
Copy link

This pull request was closed because it has been inactive for 5 days since being marked as stale.

@github-actions github-actions bot closed this May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

59 answer answer contributor highly contributing to the project stale

2 participants