'use strict';

/**
 * @ngdoc service
 * @name $document
 * @requires $window
 *
 * @description
 * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.
 */
function $DocumentProvider(){
  this.$get = ['$window', function(window){
    return jqLite(window.document);
  }];
}

@@ -187,16 +187,493 @@
 object.%0A
+ *%0A * @example%0A   %3Cexample%3E%0A     %3Cfile name=%22index.html%22%3E%0A       %3Cdiv ng-controller=%22MainCtrl%22%3E%0A         %3Cp%3E$document title: %3Cb ng-bind=%22title%22%3E%3C/b%3E%3C/p%3E%0A         %3Cp%3Ewindow.document title: %3Cb ng-bind=%22windowTitle%22%3E%3C/b%3E%3C/p%3E%0A       %3C/div%3E%0A     %3C/file%3E%0A     %3Cfile name=%22script.js%22%3E%0A       function MainCtrl($scope, $document) %7B%0A         $scope.title = $document%5B0%5D.title;%0A         $scope.windowTitle = angular.element(window.document)%5B0%5D.title;%0A       %7D%0A     %3C/file%3E%0A   %3C/example%3E%0A
  */%0Afunc

add a documentation example.