$document
is a service and work as a wrapper to access title, cookie and body of document. To access its property either we need to use prop or index[] and access them. In our example, we will display the title of the document. See the code snippet: $scope.title
= $document[0].title;