@@ -37,7 +37,7 @@ would be lost, because the browser ignores the attribute value.
3737In the following example, the interpolation information would be ignored and the browser would simply
3838interpret the attribute as present, meaning that the button would always be disabled.
3939
40- ```html
40+ ```html
4141 Disabled: <input type="checkbox" ng-model="isDisabled" />
4242 <button disabled="{{isDisabled}}">Disabled</button>
4343```
@@ -49,7 +49,7 @@ For this reason, Angular provides special `ng`-prefixed directives for the follo
4949These directives take an expression inside the attribute, and set the corresponding boolean attribute
5050to true when the expression evaluates to truthy.
5151
52- ```html
52+ ```html
5353 Disabled: <input type="checkbox" ng-model="isDisabled" />
5454 <button ng-disabled="isDisabled">Disabled</button>
5555```
@@ -106,6 +106,19 @@ can be used with `ngAttr` instead. The following is a list of known problematic
106106- **type** in `<button>` in Internet Explorer 11 (see [issue 14117](https://github.com/angular/angular.js/issues/5025))
107107- **value** in `<progress>` in Internet Explorer = 11 (see [issue 7218](https://github.com/angular/angular.js/issues/7218))
108108
109+ ## Known Issues
110+
111+ ### Dynamically changing an interpolated value
112+
113+ You should avoid dynamically changing the content of an interpolated string (e.g. attribute value
114+ or text node). Your changes are likely to be overwriten, when the original string gets evaluated.
115+ This restriction applies to both directly changing the content via JavaScript or indirectly using a
116+ directive.
117+
118+ For example, you should not use interpolation in the value of the `style` attribute (e.g.
119+ `style="color: {{ 'orange' }}; font-weight: {{ 'bold' }};"`) **and** at the same time use a
120+ directive that changes the content of that attributte, such as `ngStyle`.
121+
109122### Embedding interpolation markup inside expressions
110123
111124<div class="alert alert-danger">
0 commit comments