Angularjs Examples

AJS Examples


AngularJS $document Service

The AngularJS $document is wrapper for the browser's window.document object. The $document is a jQuery collection, not a direct reference to the HTML document object. When use $document into AngularJS application, it returns a jQuery collection (or jQLite collection) that contains the document object and its properties.

Syntax

AngularJS $document Service Example