docs: fix closing tags in deprecation summary (#30735)

fix closing tags in "Cannot assign to template variables" section

PR Close #30735
This commit is contained in:
Shawn Clabough 2019-05-29 12:19:53 -07:00 committed by Matias Niemelä
parent 71be1da0ad
commit fd23663a29
1 changed files with 2 additions and 2 deletions

View File

@ -346,13 +346,13 @@ In the following example, the two-way binding means that `optionName`
should be written when the `valueChange` event fires.
```html
<option *ngFor="let optionName of options" [(value)]="optionName"></cmp>
<option *ngFor="let optionName of options" [(value)]="optionName"></option>
```
However, in practice, Angular simply ignores two-way bindings to template variables. Starting in version 8, attempting to write to template variables is deprecated. In a future version, we will throw to indicate that the write is not supported.
```html
<option *ngFor="let optionName of options" [value]="optionName"></cmp>
<option *ngFor="let optionName of options" [value]="optionName"></option>
```
{@a binding-to-innertext}