Template variables: contradiction about references (scope)
See original GitHub issueDescription
The Syntax section of the Template variables page contains:
Refer to a template variable anywhere in the component’s template.
This should probably be removed, as it contradicts the Template variable scope section, which already contains an equivalent statement:
Refer to a template variable anywhere within its surrounding template.
By the way, the following statement from same page has strange phrasing, to say the least:
The following template variable, #phone, declares a phone variable on an element.
What is the affected URL?
https://angular.io/guide/template-reference-variables#syntax
Please provide the steps to reproduce the issue
This does not report a behavioral bug.
Please provide the expected behavior vs the actual behavior you encountered
This does not report a behavioral bug.
Please provide a screenshot if possible
No response
Please provide the exception or error you saw
This does not report a behavioral bug.
Is this a browser-specific issue? If so, please specify the device, browser, and version.
No
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to set unique template reference variables inside an ...
Your template reference variable is already unique because you use it inside embedded view scope: <div *ngFor="let person of attendeesList"> ...
Read more >Understanding template variables - Angular
Template variables help you use data from one part of a template in another part of the template. Use template variables to perform...
Read more >Class Propagator<V extends Variable> - javadoc.io
A Propagator declares a filtering algorithm to apply to the Variables objects in scope in order to reduce their Domain objects. That's why...
Read more >FAQ: Objects - Pass By Reference - Codecademy Forums
Note that the array in outer scope reflects the change made by the function. ... Variables are the simplest form of reference object,...
Read more >Use proof by contradiction to prove markov's inequality
My guess is you're mixing up the logical scopes of the variables. Are you comfortable with logical statements involving ∀ and ∃?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi there, created a PR to remove the line - #43182
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.