Skip to content

Commit 78c21af

Browse files
MathieuTricoireSebastien Armand - sa250111
authored and
Sebastien Armand - sa250111
committed
docs(input): document NgModelController.$isEmpty parameters / return value
Closes angular#6224
1 parent d678a1c commit 78c21af

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)