Content-Length: 316132 | pFad | http://github.com/angular/angular/pull/61689

8C docs: improve docs for `withComponentInputBinding` by JeanMeche · Pull Request #61689 · angular/angular · GitHub
Skip to content

docs: improve docs for withComponentInputBinding #61689

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

JeanMeche
Copy link
Member

Add mention about inputs potentially becoming undefined.

@JeanMeche JeanMeche requested a review from atscott May 26, 2025 15:10
@angular-robot angular-robot bot added the area: docs Related to the documentation label May 26, 2025
@ngbot ngbot bot added this to the Backlog milestone May 26, 2025
Copy link

github-actions bot commented May 26, 2025

Deployed adev-preview for 4ed117a to: https://ng-dev-previews-fw--pr-angular-angular-61689-adev-prev-put3y9ni.web.app

Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt.

</docs-step>
<docs-step title="Optional: Use a default value">
Binded inputs can be set to `undefined` when no route elements match.
In this situation, the router will overwrite the default value of the signal input.<br>
Copy link
Contributor

Choose a reason for hiding this comment

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

I would recommend rewording this. It is not overwriting a default any more than any value “overwrites” a default. The router assigns undefined when no route information matches the key. Same as assigning undefined in a template. The default value applies when no value ever gets assigned to the input. Component input binding always binds to all inputs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes perfect sense, I'll update that.

Add mention about inputs potentially becoming `undefined`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adev: preview area: docs Related to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/angular/pull/61689

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy