angular / angular.io

Website for the Angular project (see github.com/angular/angular for the project repo)
https://angular.io
MIT License
1.03k stars 880 forks source link

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

Closed adamdport closed 7 years ago

adamdport commented 7 years ago

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.

hristokostov commented 7 years ago

@Foxandxss what is the reason for closing this issue?

Foxandxss commented 7 years ago

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"

hristokostov commented 7 years ago

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?

Foxandxss commented 7 years ago

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

hristokostov commented 7 years ago

OK, thanks.