Skip to content

Commit 1c3b144

Browse files
committed
docs(booleanAttrs): improve parameter docs for boolean attributes
Closes angular#3724
1 parent d122810 commit 1c3b144

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/ng/directive/booleanAttrs.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@
165165
</doc:example>
166166
*
167167
* @element INPUT
168-
* @param {expression} ngDisabled Angular expression that will be evaluated.
168+
* @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,
169+
* then special attribute "disabled" will be set on the element
169170
*/
170171

171172

@@ -195,7 +196,8 @@
195196
</doc:example>
196197
*
197198
* @element INPUT
198-
* @param {expression} ngChecked Angular expression that will be evaluated.
199+
* @param {expression} ngChecked If the {@link guide/expression expression} is truthy,
200+
* then special attribute "checked" will be set on the element
199201
*/
200202

201203

@@ -225,7 +227,8 @@
225227
</doc:example>
226228
*
227229
* @element INPUT
228-
* @param {string} expression Angular expression that will be evaluated.
230+
* @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,
231+
* then special attribute "readonly" will be set on the element
229232
*/
230233

231234

@@ -258,7 +261,8 @@
258261
</doc:example>
259262
*
260263
* @element OPTION
261-
* @param {string} expression Angular expression that will be evaluated.
264+
* @param {expression} ngSelected If the {@link guide/expression expression} is truthy,
265+
* then special attribute "selected" will be set on the element
262266
*/
263267

264268
/**
@@ -290,7 +294,8 @@
290294
</doc:example>
291295
*
292296
* @element DETAILS
293-
* @param {string} expression Angular expression that will be evaluated.
297+
* @param {expression} ngOpen If the {@link guide/expression expression} is truthy,
298+
* then special attribute "open" will be set on the element
294299
*/
295300

296301
var ngAttributeAliasDirectives = {};

0 commit comments

Comments
 (0)