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

Answer: 59 #1267

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

Conversation

kevinagus
Copy link

No description provided.

@github-actions github-actions bot added 59 answer answer labels Apr 2, 2025
{
injector: this.#injector,
},
);
Copy link
Owner

Choose a reason for hiding this comment

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

very imperative, you could use a condition to trigger or not the request inside httpRessource.

Copy link
Author

Choose a reason for hiding this comment

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

yep definitely I'll add a function to get a dynamic URL with a ternary condition

expanded = output<boolean>();
constructor() {
effect(() => {
this.expanded.emit(this.isExpanded());
Copy link
Owner

Choose a reason for hiding this comment

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

Using effect to trigger an output is often a sign of a bad design

Copy link
Author

Choose a reason for hiding this comment

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

understood, I'll set a callback function for the button click instead

@kevinagus kevinagus force-pushed the 59-content-projection-defer branch from c85b2c6 to 5b6b267 Compare April 4, 2025 08:18
@kevinagus kevinagus force-pushed the 59-content-projection-defer branch from 5b6b267 to 5f8c1b2 Compare April 4, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants