angular/angular.io

docs(aio): template reference variables cannot actually be referenced "anywhere" in the template

adamdport opened this issue · 5 comments

https://angular.io/guide/template-syntax#ref-vars:

You can refer to a template reference variable anywhere in the template.

According to this thread, this is incorrect, and should be fixed in the documentation.

In addition, it gets a bit complicated when combining template variables inside an *ngIf, and I think this deserves at least a mention in the "Template reference variable warning notes" section.

@Foxandxss what is the reason for closing this issue?

This repo is "closed", deprecated. There is a giant warning when you create an issue, something like "Please don't open an issue here, do it on the angular repo. We will close all isues here"

Thanks for the quick reply, @Foxandxss . Does it mean all issues here are lost/ignored and have to be opened again in the angular repo?

No, all the issues that were created before we made the switch are properly documented internally in a document.

OK, thanks.