From de1dda63e27e927cb5e5cea7bfce01d97e7b3806 Mon Sep 17 00:00:00 2001 From: Trevor Ewen Date: Wed, 19 Mar 2014 21:06:50 -0400 Subject: [PATCH] documentation example. --- src/ng/document.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ng/document.js b/src/ng/document.js index cc7604773d61..321a36520805 100644 --- a/src/ng/document.js +++ b/src/ng/document.js @@ -7,6 +7,22 @@ * * @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){