|
149 | 149 | *
|
150 | 150 | * The HTML specification does not require browsers to preserve the values of boolean attributes
|
151 | 151 | * such as disabled. (Their presence means true and their absence means false.)
|
152 |
| - * This prevents the Angular compiler from retrieving the binding expression. |
| 152 | + * If we put an Angular interpolation expression into such an attribute then the |
| 153 | + * binding information would be lost when the browser removes the attribute. |
153 | 154 | * The `ngDisabled` directive solves this problem for the `disabled` attribute.
|
| 155 | + * This complementary directive is not removed by the browser and so provides |
| 156 | + * a permanent reliable place to store the binding information. |
154 | 157 | *
|
155 | 158 | * @example
|
156 | 159 | <doc:example>
|
|
181 | 184 | * @description
|
182 | 185 | * The HTML specification does not require browsers to preserve the values of boolean attributes
|
183 | 186 | * such as checked. (Their presence means true and their absence means false.)
|
184 |
| - * This prevents the Angular compiler from retrieving the binding expression. |
| 187 | + * If we put an Angular interpolation expression into such an attribute then the |
| 188 | + * binding information would be lost when the browser removes the attribute. |
185 | 189 | * The `ngChecked` directive solves this problem for the `checked` attribute.
|
| 190 | + * This complementary directive is not removed by the browser and so provides |
| 191 | + * a permanent reliable place to store the binding information. |
186 | 192 | * @example
|
187 | 193 | <doc:example>
|
188 | 194 | <doc:source>
|
|
212 | 218 | * @description
|
213 | 219 | * The HTML specification does not require browsers to preserve the values of boolean attributes
|
214 | 220 | * such as readonly. (Their presence means true and their absence means false.)
|
215 |
| - * This prevents the Angular compiler from retrieving the binding expression. |
| 221 | + * If we put an Angular interpolation expression into such an attribute then the |
| 222 | + * binding information would be lost when the browser removes the attribute. |
216 | 223 | * The `ngReadonly` directive solves this problem for the `readonly` attribute.
|
| 224 | + * This complementary directive is not removed by the browser and so provides |
| 225 | + * a permanent reliable place to store the binding information. |
| 226 | +
|
217 | 227 | * @example
|
218 | 228 | <doc:example>
|
219 | 229 | <doc:source>
|
|
243 | 253 | * @description
|
244 | 254 | * The HTML specification does not require browsers to preserve the values of boolean attributes
|
245 | 255 | * such as selected. (Their presence means true and their absence means false.)
|
246 |
| - * This prevents the Angular compiler from retrieving the binding expression. |
| 256 | + * If we put an Angular interpolation expression into such an attribute then the |
| 257 | + * binding information would be lost when the browser removes the attribute. |
247 | 258 | * The `ngSelected` directive solves this problem for the `selected` atttribute.
|
| 259 | + * This complementary directive is not removed by the browser and so provides |
| 260 | + * a permanent reliable place to store the binding information. |
248 | 261 | * @example
|
249 | 262 | <doc:example>
|
250 | 263 | <doc:source>
|
|
276 | 289 | * @description
|
277 | 290 | * The HTML specification does not require browsers to preserve the values of boolean attributes
|
278 | 291 | * such as open. (Their presence means true and their absence means false.)
|
279 |
| - * This prevents the Angular compiler from retrieving the binding expression. |
| 292 | + * If we put an Angular interpolation expression into such an attribute then the |
| 293 | + * binding information would be lost when the browser removes the attribute. |
280 | 294 | * The `ngOpen` directive solves this problem for the `open` attribute.
|
| 295 | + * This complementary directive is not removed by the browser and so provides |
| 296 | + * a permanent reliable place to store the binding information. |
| 297 | +
|
281 | 298 | *
|
282 | 299 | * @example
|
283 | 300 | <doc:example>
|
|
0 commit comments