![]() |
VOOZH | about |
The angular.isDefined() function in AngularJS is used to determine the value inside isDefined function is defined or not. It returns true if the reference is defined otherwise returns false.
Syntax:
angular.isDefined( value );
Parameter value:
Return Value: It returns true if the passed value is defined otherwise returns false.
Example: This example uses angular.isDefined() function to determine the value inside isDefined function is defined or not.
Output:
Example 2: This example describes the usage of angular.isDefined() Function in AngularJS by specifying the current time.
Output: