Skip to content

Answer:56 forms and signal #1169

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 2 commits into
base: main
Choose a base branch
from

Conversation

apalaio
Copy link

@apalaio apalaio commented Jan 8, 2025

Checklist for challenge submission

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

Warning:

  • If you want feedback or review, you must support the project on GitHub:

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 56 answer answer sponsor sponsor the project to be reviewed PR requests a review labels Jan 8, 2025
@@ -59,13 +60,24 @@ export default class OrderComponent {
});

productId = input('1');
quantity = input(1);
Copy link
Owner

Choose a reason for hiding this comment

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

you could use this.route.snapshot.queryParams['quantity'] since this.route is created first the value is available when you want to instantiate the class,
The code is simpler. but your code works. Waiting for signal forms to make all of this easy 🔥

@tomalaforge tomalaforge removed the to be reviewed PR requests a review label Jan 29, 2025
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 Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
56 answer answer sponsor sponsor the project stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants