File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 206
206
* @priority 100
207
207
*
208
208
* @description
209
+ * Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy.
210
+ *
211
+ * Note that this directive should not be used together with {@link ngModel `ngModel`},
212
+ * as this can lead to unexpected behavior.
213
+ *
214
+ * ### Why do we need `ngChecked`?
215
+ *
209
216
* The HTML specification does not require browsers to preserve the values of boolean attributes
210
217
* such as checked. (Their presence means true and their absence means false.)
211
218
* If we put an Angular interpolation expression into such an attribute then the
230
237
*
231
238
* @element INPUT
232
239
* @param {expression } ngChecked If the {@link guide/expression expression} is truthy,
233
- * then special attribute " checked" will be set on the element
240
+ * then the ` checked` attribute will be set on the element
234
241
*/
235
242
236
243
You can’t perform that action at this time.
0 commit comments