'use strict'; /** * @ngdoc service * @name $document * @requires $window * * @description * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object. * * @example

$document title:

window.document title:

function MainCtrl($scope, $document) { $scope.title = $document[0].title; $scope.windowTitle = angular.element(window.document)[0].title; }
*/ function $DocumentProvider(){ this.$get = ['$window', function(window){ return jqLite(window.document); }]; }