$document service provides a
shortcut to access document properties in AngularJS,
however this is not a direct reference to the document object, it is a
reference to jQuery document
property collection. The properties
of the collection can be accessed using prop.
The following is the syntax to access document property collection using AngularJS
$document.prop( "<document property to access>" )
The following example shows how to access the page title of the page using $document
The following is the syntax to access document property collection using AngularJS
$document.prop( "<document property to access>" )
The following example shows how to access the page title of the page using $document