question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Template variables: contradiction about references (scope)

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
subsoncommented, Aug 16, 2021

Hi there, created a PR to remove the line - #43182

0reactions
angular-automatic-lock-bot[bot]commented, Sep 25, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found