Angular.js - using angular.isDefined() function

A simple Angular.js example of checking if a variable is defined using the AngularJS API.