Improve this Doc  View Source

$document

  1. - service in module ng

A jQuery or jqLite wrapper for the browser's window.document object.

Dependencies

Example

<div ng-controller="ExampleController">
  <p>$document title: <b ng-bind="title"></b></p>
  <p>window.document title: <b ng-bind="windowTitle"></b></p>
</div>