Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 46cba2e

Browse files
MathieuTricoirecaitp
authored andcommitted
docs(input): document NgModelController.$isEmpty parameters / return value
Closes #6224
1 parent 72894f0 commit 46cba2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ng/directive/input.js

+3
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,9 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
10221022
* You can override this for input directives whose concept of being empty is different to the
10231023
* default. The `checkboxInputType` directive does this because in its case a value of `false`
10241024
* implies empty.
1025+
*
1026+
* @param {*} value Reference to check.
1027+
* @returns {boolean} True if `value` is empty.
10251028
*/
10261029
this.$isEmpty = function(value) {
10271030
return isUndefined(value) || value === '' || value === null || value !== value;

0 commit comments

Comments
 (0)